public final class CompoundKey extends Object implements Iterable<Object>, Serializable
equals()
and hashCode()
,
used to hold a multi-element key for HashMap
s.Constructor and Description |
---|
CompoundKey(Object... components) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Iterator<Object> |
iterator()
Returns an iterator over the components of this key.
|
String |
toString()
Produces a string of the form "[COMP0,COMP1,...]" where COMP0 et al
come from calling
String.valueOf() on the component. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public CompoundKey(Object... components)