|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.neu.ccs.demeterf.lib.Entry<Key,Val>
public class Entry<Key,Val>
Class representing Map Entries (key/value Pairs).
Use Entry.create(Key, Val) and Entry.create(Key, Val, Comparator
Nested Class Summary | |
---|---|
static class |
Entry.key
Field Class for key |
static class |
Entry.val
Field Class for val |
Constructor Summary | |
---|---|
Entry(Key k,
Val v)
Create an Entry from a Key/Value Pair |
Method Summary | ||
---|---|---|
int |
compareTo(Entry<Key,Val> e)
|
|
static
|
create(Key k,
Val v)
Create an Entry with a Comparable Key, and a Value. |
|
static
|
create(Key k,
Val v,
java.util.Comparator<Key> c)
Create an Entry with a Key, Value, and a Comparator for Keys. |
|
boolean |
equals(java.lang.Object o)
Standard Equality |
|
Key |
getKey()
Getter for Entry.key |
|
Val |
getVal()
Getter for Entry.val |
|
int |
hashCode()
Return the HashCode of htis Entry |
|
java.lang.String |
toString()
Return a String representation of this Entry. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Entry(Key k, Val v)
Method Detail |
---|
public int compareTo(Entry<Key,Val> e)
compareTo
in interface java.lang.Comparable<Entry<Key,Val>>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Key getKey()
public Val getVal()
public java.lang.String toString()
toString
in class java.lang.Object
public static <Key extends java.lang.Comparable<Key>,Val> Entry<Key,Val> create(Key k, Val v)
public static <Key,Val> Entry<Key,Val> create(Key k, Val v, java.util.Comparator<Key> c)
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |