|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jjoost.util.Equalities.EntryEquality<K,V>
public static class Equalities.EntryEquality<K,V>
an Equality over objects of type Entry, for provided K and V; wraps
a separate Equality for comparing the key and value portions of the Entry.
| Constructor Summary | |
|---|---|
Equalities.EntryEquality(Equality<? super K> keyEq,
Equality<? super V> valEq)
Construct a new EntryEquality |
|
| Method Summary | |
|---|---|
boolean |
equates(java.util.Map.Entry<K,V> a,
java.util.Map.Entry<K,V> b)
Returns a boolean indicating if the two parameters are considered equal by this Equality |
Equality<? super K> |
getKeyEquality()
|
Equality<? super V> |
getValueEquality()
|
int |
hash(java.util.Map.Entry<K,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.EntryEquality(Equality<? super K> keyEq,
Equality<? super V> valEq)
keyEq - the Equality to use to compare the key portion of an EntryvalEq - the Equality to use to compare the value portion of an Entry| Method Detail |
|---|
public final boolean equates(java.util.Map.Entry<K,V> a,
java.util.Map.Entry<K,V> b)
Equalityboolean indicating if the two parameters are considered equal by this Equality
equates in interface Equality<java.util.Map.Entry<K,V>>a - an Object of type Eb - another Object of type E
true if this equality equates the two argumentspublic final int hash(java.util.Map.Entry<K,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<java.util.Map.Entry<K,V>>o - an Object of type E
public final Equality<? super K> getKeyEquality()
Equality to use to compare the key portion of an Entrypublic final Equality<? super V> getValueEquality()
Equality to use to compare the value portion of an Entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||