Applied-Energistics-2-tiler.../me/GridStorageSearch.java
2013-12-27 16:59:59 -06:00

40 lines
589 B
Java

package appeng.me;
import java.lang.ref.WeakReference;
public class GridStorageSearch
{
final long id;
public WeakReference<GridStorage> gridStorage;
/**
* for use with the world settings
*
* @param id
*/
public GridStorageSearch(long id) {
this.id = id;
}
@Override
public boolean equals(Object obj)
{
if ( obj == null )
return false;
GridStorageSearch b = (GridStorageSearch) obj;
if ( id == b.id )
return true;
return false;
}
@Override
public int hashCode()
{
return ((Long) id).hashCode();
}
}