|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanbikel.util.AbstractMapToPrimitive.Entry<K>
danbikel.util.HashMapPrimitive.Entry<K>
danbikel.util.HashMapTwoInts.Entry<K>
protected static class HashMapTwoInts.Entry<K>
A map entry for this type of map, containing a key and a pair of
ints.
| Field Summary | |
|---|---|
protected int |
intVal0
|
protected int |
intVal1
|
| Fields inherited from class danbikel.util.HashMapPrimitive.Entry |
|---|
keyHash, next |
| Fields inherited from class danbikel.util.AbstractMapToPrimitive.Entry |
|---|
key |
| Constructor Summary | |
|---|---|
|
HashMapTwoInts.Entry()
Constructs a new entry for this type of map with default values for the data members (this default constructor here for serialization reasons). |
protected |
HashMapTwoInts.Entry(int hash,
K key,
HashMapPrimitive.Entry<K> next)
Constructs a new entry for a map from objects to pairs of ints. |
protected |
HashMapTwoInts.Entry(int hash,
K key,
int value0,
int value1,
HashMapPrimitive.Entry<K> next)
Constructs a new entry for a map from objects to ints. |
| Method Summary | |
|---|---|
void |
add(int index,
int addend)
Adds the specified amount to the int at the specified index
associated with the key in this entry. |
Object |
clone()
Returns a new copy of this type of map entry. |
void |
copyValuesFrom(HashMapPrimitive.Entry copyFrom)
Makes the data membes in this entry be identical to those in the specified entry by performing a shallow copy. |
boolean |
equals(Object o)
|
int |
getIntValue(int index)
Returns the int value at the specified index associated with
the key in this entry. |
int |
hashCode()
|
int |
numInts()
Returns 2, the number of ints associated with a key. |
void |
readValues(ObjectInput in)
|
int |
set(int index,
int value)
Sets the int value at the specified index associated with
the key in this entry. |
String |
toString()
|
void |
writeValues(ObjectOutput out)
|
| Methods inherited from class danbikel.util.HashMapPrimitive.Entry |
|---|
getValue, readExternal, replaceKey, setValue, writeExternal |
| Methods inherited from class danbikel.util.AbstractMapToPrimitive.Entry |
|---|
add, add, add, add, add, add, add, add, add, add, add, getByteValue, getByteValue, getCharValue, getCharValue, getDoubleValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getKey, getLongValue, getLongValue, getShortValue, getShortValue, numBytes, numChars, numDoubles, numFloats, numLongs, numShorts, set, set, set, set, set, set |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected transient int intVal0
protected transient int intVal1
| Constructor Detail |
|---|
public HashMapTwoInts.Entry()
protected HashMapTwoInts.Entry(int hash,
K key,
HashMapPrimitive.Entry<K> next)
ints.
hash - the hash value for the specified keykey - the key for this entry to wrapnext - the next pointer in this entry’s singly-linked list
protected HashMapTwoInts.Entry(int hash,
K key,
int value0,
int value1,
HashMapPrimitive.Entry<K> next)
ints.
hash - the hash value for the specified keykey - the key for this entry to wrapvalue0 - the first int value to be associated with the
specified key in the mapvalue1 - the second int value to be associated with the
specified key in the mapnext - the next pointer in this entry’s singly-linked list| Method Detail |
|---|
public int numInts()
ints associated with a key.
numInts in interface MapToPrimitive.Entry<K>numInts in class AbstractMapToPrimitive.Entry<K>ints associated with a keypublic final int getIntValue(int index)
int value at the specified index associated with
the key in this entry.
getIntValue in interface MapToPrimitive.Entry<K>getIntValue in class AbstractMapToPrimitive.Entry<K>index - the index of the int value to return
int value at the specified index associated with
the key in this entry
public final int set(int index,
int value)
int value at the specified index associated with
the key in this entry.
set in interface MapToPrimitive.Entry<K>set in class AbstractMapToPrimitive.Entry<K>index - the index of the int to be setvalue - the value to associated with the key in this entry
public final void add(int index,
int addend)
int at the specified index
associated with the key in this entry.
add in interface MapToPrimitive.Entry<K>add in class AbstractMapToPrimitive.Entry<K>index - the index of the int to be increasedaddend - the amount to add to the int associated with
the key in this entrypublic void copyValuesFrom(HashMapPrimitive.Entry copyFrom)
copyValuesFrom in class HashMapPrimitive.Entry<K>copyFrom - the entry from which to copypublic String toString()
toString in class HashMapPrimitive.Entry<K>public int hashCode()
hashCode in interface Map.Entry<K,Object>hashCode in class HashMapPrimitive.Entry<K>public boolean equals(Object o)
equals in interface Map.Entry<K,Object>equals in class HashMapPrimitive.Entry<K>public Object clone()
HashMapPrimitive.Entry
clone in class HashMapPrimitive.Entry<K>
public void writeValues(ObjectOutput out)
throws IOException
writeValues in class HashMapPrimitive.Entry<K>IOException
public void readValues(ObjectInput in)
throws IOException,
ClassNotFoundException
readValues in class HashMapPrimitive.Entry<K>IOException
ClassNotFoundException
|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||