hs.hsadmin/hsarback/src/de/hsadmin/mods/pac/PacComponentId.java

24 lines
468 B
Java
Raw Normal View History

2010-10-01 21:52:51 +02:00
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();
}
}