23 lines
470 B
Java
23 lines
470 B
Java
package de.hsadmin.mods.pac;
|
|
|
|
public class ComponentId {
|
|
|
|
public long basePac;
|
|
public long baseComponent;
|
|
|
|
@Override
|
|
public boolean equals(Object obj) {
|
|
if (obj != null && obj instanceof ComponentId) {
|
|
ComponentId other = (ComponentId) obj;
|
|
return basePac == other.basePac && baseComponent == other.baseComponent;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return (new Long(basePac ^ baseComponent % Integer.MAX_VALUE)).intValue();
|
|
}
|
|
|
|
}
|