soot.toolkits.scalar
Class BinaryIdentitySet<T>
java.lang.Object
soot.toolkits.scalar.BinaryIdentitySet<T>
public class BinaryIdentitySet<T>
- extends Object
An optimized kind of IdentityHashSet
that only holds two objects. (Allows for faster comparison.)
- Author:
- Eric Bodden
o1
protected final T o1
o2
protected final T o2
hashCode
protected final int hashCode
BinaryIdentitySet
public BinaryIdentitySet(T o1,
T o2)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
-
- Overrides:
equals
in class Object
getO1
public T getO1()
getO2
public T getO2()
toString
public String toString()
- Overrides:
toString
in class Object