Applied-Energistics-2-tiler.../src/main/java/appeng/me/GridStorageSearch.java

42 lines
637 B
Java
Raw Normal View History

2014-09-24 02:26:27 +02:00
package appeng.me;
import java.lang.ref.WeakReference;
public class GridStorageSearch
{
final long id;
public WeakReference<GridStorage> gridStorage;
/**
* for use with the world settings
*
2014-09-27 23:17:47 +02:00
* @param id ID of grid storage search
2014-09-24 02:26:27 +02:00
*/
public GridStorageSearch(long id) {
this.id = id;
}
@Override
public boolean equals(Object obj)
{
if ( obj == null )
return false;
if ( getClass() != obj.getClass() )
return false;
2014-09-24 02:26:27 +02:00
GridStorageSearch other = (GridStorageSearch) obj;
if ( id == other.id )
2014-09-24 02:26:27 +02:00
return true;
return false;
}
@Override
public int hashCode()
{
return ((Long) id).hashCode();
}
}