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