Package org.apache.bcel.util
Interface BCELComparator<T>
-
- Type Parameters:
T
- What type we are comparing.
public interface BCELComparator<T>
Used for BCEL comparison strategy.- Since:
- 5.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
equals(T a, T b)
Compares two objects and return what a.equals(b) should return.int
hashCode(T o)
Gets the hash code for o.hashCode()
-
-
-
Method Detail
-
equals
boolean equals(T a, T b)
Compares two objects and return what a.equals(b) should return.- Parameters:
a
- an object.b
- an object to be compared witha
for equality.- Returns:
true
if the arguments are equal to each other andfalse
otherwise.
-
hashCode
int hashCode(T o)
Gets the hash code for o.hashCode()- Parameters:
o
-- Returns:
- hash code for o.hashCode()
-
-