|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.demeterf.demfgen.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 |
| Field Summary | |
|---|---|
Key |
key
|
Val |
val
|
| Constructor Summary | |
|---|---|
Entry(Key k,
Val v)
Craete 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 |
|
java.lang.String |
toString()
Return a String representation of this Entry. |
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Key key
public final Val val
| 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.Objectpublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||