|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface MapToPrimitive.Entry<K>
Interface that provides methods for all the possible primitive
types that could be associated with keys in a MapToPrimitive
map.
Method Summary | |
---|---|
void |
add(byte addend)
Increments the byte at index 0 by the specified amount. |
void |
add(double addend)
Increments the double at index 0 by the specified amount. |
void |
add(float addend)
Increments the float at index 0 by the specified amount. |
void |
add(int addend)
Increments the int at index 0 by the specified amount. |
void |
add(int index,
byte addend)
Increments the byte at the specified index by the specified
amount. |
void |
add(int index,
double addend)
Increments the double at the specified index by the specified
amount. |
void |
add(int index,
float addend)
Increments the float at the specified index by the specified
amount. |
void |
add(int index,
int addend)
Increments the int at the specified index by the specified
amount. |
void |
add(int index,
long addend)
Increments the long at the specified index by the specified
amount. |
void |
add(int index,
short addend)
Increments the short at the specified index by the specified
amount. |
void |
add(long addend)
Increments the long at index 0 by the specified amount. |
void |
add(short addend)
Increments the short at index 0 by the specified amount. |
byte |
getByteValue()
Gets the byte value associated with the key contained in
this entry. |
byte |
getByteValue(int index)
Returns the byte value of the specified index associated
with the key in this map entry. |
char |
getCharValue()
Gets the char value associated with the key contained in
this entry. |
char |
getCharValue(int index)
Returns the char value of the specified index associated
with the key in this map entry. |
double |
getDoubleValue()
Gets the double value associated with the key contained in
this entry. |
double |
getDoubleValue(int index)
Returns the double value of the specified index associated
with the key in this map entry. |
float |
getFloatValue()
Gets the float value associated with the key contained in
this entry. |
float |
getFloatValue(int index)
Returns the float value of the specified index associated
with the key in this map entry. |
int |
getIntValue()
Gets the int value associated with the key contained in
this entry. |
int |
getIntValue(int index)
Returns the int value of the specified index associated
with the key in this map entry. |
long |
getLongValue()
Gets the long value associated with the key contained in
this entry. |
long |
getLongValue(int index)
Returns the long value of the specified index associated
with the key in this map entry. |
short |
getShortValue()
Gets the short value associated with the key contained in
this entry. |
short |
getShortValue(int index)
Returns the short value of the specified index associated
with the key in this map entry. |
int |
numBytes()
Returns the number of byte values associated with the key
in this map entry, or 00 if the implementor does not
associate byte s with its key |
int |
numChars()
Returns the number of char values associated with the key
in this map entry, or 0 if the implementor does not
associate char s with its key |
int |
numDoubles()
Returns the number of double values associated with the key
in this map entry, or 0 if the implementor does not
associate double s with its key |
int |
numFloats()
Returns the number of float values associated with the key
in this map entry, or 0 if the implementor does not
associate float s with its key |
int |
numInts()
Returns the number of int values associated with the key
in this map entry, or 0 if the implementor does not
associate int s with its key |
int |
numLongs()
Returns the number of long values associated with the key
in this map entry, or 0 if the implementor does not
associate long s with its key |
int |
numShorts()
Returns the number of short values associated with the key
in this map entry, or 0 if the implementor does not
associate short s with its key |
boolean |
replaceKey(K key)
Sets the key of this map entry to be the specified key if it is equal to the current key. |
byte |
set(int index,
byte value)
Sets the char value for the key in this entry to be
the specified character. |
char |
set(int index,
char value)
Sets the char value for the key in this entry to be
the specified character. |
double |
set(int index,
double value)
Sets the char value for the key in this entry to be
the specified character. |
float |
set(int index,
float value)
Sets the float value for the key in this entry to be
the specified character. |
int |
set(int index,
int value)
Sets the char value for the key in this entry to be
the specified character. |
long |
set(int index,
long value)
Sets the char value for the key in this entry to be
the specified character. |
short |
set(int index,
short value)
Sets the short value for the key in this entry to be
the specified character. |
Methods inherited from interface java.util.Map.Entry |
---|
equals, getKey, getValue, hashCode, setValue |
Method Detail |
---|
boolean replaceKey(K key)
equals
method), this method does nothing and returns false
.
key
- a key equal to the current key as determined by
the current key's equals
method
true
if the specified key was equal to the current
key and was therefore substituted for the current key, false
otherwiseint numBytes()
byte
values associated with the key
in this map entry, or 00 if the implementor does not
associate byte
s with its key
byte getByteValue()
byte
value associated with the key contained in
this entry. If an implementor associates multiple byte
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate byte
s with its keysbyte getByteValue(int index)
byte
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single byte
with its key, then the specified index must
be 0
.
index
- the index of the byte
value to retrieve
IllegalArgumentException
- if
0 <= index < numBytes()is
false
UnsupportedOperationException
- if the implementor does not
associate byte
s with its keyint numShorts()
short
values associated with the key
in this map entry, or 0 if the implementor does not
associate short
s with its key
short getShortValue()
short
value associated with the key contained in
this entry. If an implementor associates multiple short
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate short
s with its keysshort getShortValue(int index)
short
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single short
with its key, then the specified index must
be 0
.
index
- the index of the short
value to retrieve
IllegalArgumentException
- if
0 <= index < numShorts()is
false
UnsupportedOperationException
- if the implementor does not
associate short
s with its keyint numChars()
char
values associated with the key
in this map entry, or 0 if the implementor does not
associate char
s with its key
char getCharValue()
char
value associated with the key contained in
this entry. If an implementor associates multiple char
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate char
s with its keyschar getCharValue(int index)
char
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single char
with its key, then the specified index must
be 0
.
index
- the index of the char
value to retrieve
IllegalArgumentException
- if
0 <= index < numChars()is
false
UnsupportedOperationException
- if the implementor does not
associate char
s with its keyint numInts()
int
values associated with the key
in this map entry, or 0 if the implementor does not
associate int
s with its key
int getIntValue()
int
value associated with the key contained in
this entry. If an implementor associates multiple int
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate int
s with its keysint getIntValue(int index)
int
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single int
with its key, then the specified index must
be 0
.
index
- the index of the int
value to retrieve
IllegalArgumentException
- if
0 <= index < numInts()is
false
UnsupportedOperationException
- if the implementor does not
associate int
s with its keyint numLongs()
long
values associated with the key
in this map entry, or 0 if the implementor does not
associate long
s with its key
long getLongValue()
long
value associated with the key contained in
this entry. If an implementor associates multiple long
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate long
s with its keyslong getLongValue(int index)
long
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single long
with its key, then the specified index must
be 0
.
index
- the index of the long
value to retrieve
IllegalArgumentException
- if
0 <= index < numLongs()is
false
UnsupportedOperationException
- if the implementor does not
associate long
s with its keyint numFloats()
float
values associated with the key
in this map entry, or 0 if the implementor does not
associate float
s with its key
float getFloatValue()
float
value associated with the key contained in
this entry. If an implementor associates multiple float
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate float
s with its keysfloat getFloatValue(int index)
float
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single float
with its key, then the specified index must
be 0
.
index
- the index of the float
value to retrieve
IllegalArgumentException
- if
0 <= index < numFloats()is
false
UnsupportedOperationException
- if the implementor does not
associate float
s with its keyint numDoubles()
double
values associated with the key
in this map entry, or 0 if the implementor does not
associate double
s with its key
double getDoubleValue()
double
value associated with the key contained in
this entry. If an implementor associates multiple double
values, this method retrieves the first one.
UnsupportedOperationException
- if the implementor does not
associate double
s with its keysdouble getDoubleValue(int index)
double
value of the specified index associated
with the key in this map entry. If the implementor associates only
a single double
with its key, then the specified index must
be 0
.
index
- the index of the double
value to retrieve
IllegalArgumentException
- if
0 <= index < numDoubles()is
false
UnsupportedOperationException
- if the implementor does not
associate double
s with its keybyte set(int index, byte value)
char
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the byte to which to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate byte
s with its keyvoid add(byte addend)
byte
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the byte
value at the specified indexvoid add(int index, byte addend)
byte
at the specified index by the specified
amount.
index
- the index of the byte
value to be incrementedaddend
- the amount by which to increment the byte
value at the specified indexchar set(int index, char value)
char
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the character to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate char
s with its keyshort set(int index, short value)
short
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the short to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate short
s with its keyvoid add(short addend)
short
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the short
value at the specified indexvoid add(int index, short addend)
short
at the specified index by the specified
amount.
index
- the index of the short
value to be incrementedaddend
- the amount by which to increment the short
value at the specified indexint set(int index, int value)
char
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the character to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate int
s with its keyvoid add(int addend)
int
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the int
value at the specified indexvoid add(int index, int addend)
int
at the specified index by the specified
amount.
index
- the index of the int
value to be incrementedaddend
- the amount by which to increment the int
value at the specified indexlong set(int index, long value)
char
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the long to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate long
s with its keyvoid add(long addend)
long
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the long
value at the specified indexvoid add(int index, long addend)
long
at the specified index by the specified
amount.
index
- the index of the long
value to be incrementedaddend
- the amount by which to increment the long
value at the specified indexfloat set(int index, float value)
float
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the float to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate float
s with its keyvoid add(float addend)
float
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the float
value at the specified indexvoid add(int index, float addend)
float
at the specified index by the specified
amount.
index
- the index of the float
value to be incrementedaddend
- the amount by which to increment the float
value at the specified indexdouble set(int index, double value)
char
value for the key in this entry to be
the specified character.
index
- the index of the character value to setvalue
- the double to set as a value for the key of
this map entry
UnsupportedOperationException
- if the implementor does not
associate double
s with its keyvoid add(double addend)
double
at index 0 by the specified amount.
This is simply a convenience method, completely equivalent to calling
add(0, addend)
.
addend
- the amount by which to increment the double
value at the specified indexvoid add(int index, double addend)
double
at the specified index by the specified
amount.
index
- the index of the double
value to be incrementedaddend
- the amount by which to increment the double
value at the specified index
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |