public class BinaryIdentitySet<T>
extends java.lang.Object
IdentityHashSet
that only holds two objects. (Allows for faster comparison.)Modifier and Type | Field and Description |
---|---|
protected int |
hashCode |
protected T |
o1 |
protected T |
o2 |
Constructor and Description |
---|
BinaryIdentitySet(T o1,
T o2) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
T |
getO1() |
T |
getO2() |
int |
hashCode() |
java.lang.String |
toString() |
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public T getO1()
public T getO2()
public java.lang.String toString()
toString
in class java.lang.Object