|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.Equalities.RehashingEquality<V>
public static final class Equalities.RehashingEquality<V>
an Equality which delegates to the provided Equality, but passes the resulting hash()
through the provided Rehasher before returning it
| Constructor Summary | |
|---|---|
Equalities.RehashingEquality(Equality<V> delegate,
Rehasher rehasher)
Create a new RehashingEquality |
|
| Method Summary | |
|---|---|
boolean |
equates(V a,
V b)
Returns a boolean indicating if the two parameters are considered equal by this Equality |
int |
hash(V o)
Returns the hash value of the object as defined by this Equality. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Equalities.RehashingEquality(Equality<V> delegate,
Rehasher rehasher)
delegate - the Equality to delegate torehasher - the Rehasher to pass the hash through| Method Detail |
|---|
public int hash(V o)
EqualityEquality. For all objects this Equality can be
applied to, it should be the case that equates(a, b) ==> hash(a) == hash(b)
hash in interface Equality<V>o - an Object of type E
public boolean equates(V a,
V b)
Equalityboolean indicating if the two parameters are considered equal by this Equality
equates in interface Equality<V>a - an Object of type Eb - another Object of type E
true if this equality equates the two arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||