APIdia Launch Partner
Top Description Methods
com.sun.org.apache.bcel.internal.util

public Interface BCELComparator<T>

Type Parameters
<T>
What type we are comparing.

Used for BCEL comparison strategy.
Since
5.2

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the arguments are equal to each other and false otherwise.
equals
(T
an object.
a
,
T
an object to be compared with a for equality.
b
)

Compares two objects and return what a.equals(b) should return.

public int

Returns:

hash code for o.hashCode()
hashCode
(T o)

Gets the hash code for o.hashCode()

Method Detail

equalsback to summary
public boolean equals(T a, T b)

Compares two objects and return what a.equals(b) should return.

Parameters
a:T

an object.

b:T

an object to be compared with a for equality.

Returns:boolean

true if the arguments are equal to each other and false otherwise.

hashCodeback to summary
public int hashCode(T o)

Gets the hash code for o.hashCode()

Returns:int

hash code for o.hashCode()