|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metastatic.rsync.TwoKeyMap.SubTable
A Map.Entry
that contains another Map
that is keyed with stronger, larger keys, and links
to other SubTables whose key
's lower four bytes are
equivalent.
Field Summary | |
---|---|
protected Map |
data
The sub-table, a Map that is an instance of
TreeMap . |
protected Integer |
key
The index in the array of sub-tables in which this entry is a member. |
Method Summary | |
---|---|
boolean |
containsKey(TwoKeyMap.StrongKey key)
Test if this sub-table contains the given key. |
boolean |
containsValue(Object value)
Test if this sub-table contains the given value. |
boolean |
equals(Object o)
Test if another object equals this one. |
Object |
get(TwoKeyMap.StrongKey key)
Get the Object that is mapped by the strong key key. |
Object |
getKey()
Get the key that maps to this entry. |
Object |
getValue()
Get the value of this entry. |
int |
hashCode()
Return the hash code for this entry. |
void |
put(TwoKeyMap.StrongKey key,
Object value)
Map the given key to the given value. |
Object |
setValue(Object value)
|
String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Map data
Map
that is an instance of
TreeMap
.
protected Integer key
Method Detail |
public Object get(TwoKeyMap.StrongKey key)
key
- The key to look for in this sub-table.
public void put(TwoKeyMap.StrongKey key, Object value)
key
- The key.value
- The value.public boolean containsKey(TwoKeyMap.StrongKey key)
key
- The key to look for.
public boolean containsValue(Object value)
value
- The value to look for.
public boolean equals(Object o)
equals
in interface Map.Entry
equals
in class Object
o
- The object to test.
ClassCastException
- If o is not an
instance of this class.
NullPointerException
- If o is null.public Object getKey()
getKey
in interface Map.Entry
Integer
that maps to this
entry.public Object getValue()
getValue
in interface Map.Entry
Map
that represents the sub-table.public int hashCode()
hashCode
in interface Map.Entry
hashCode
in class Object
public Object setValue(Object value)
setValue
in interface Map.Entry
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |