|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdanbikel.util.AbstractMapToPrimitive.Entry
danbikel.parser.Trainer.EventEntry
public static class Trainer.EventEntry
Class to represent a MapToPrimitive.Entry object for use by the
Trainer.getEventIterator(danbikel.lisp.SexpTokenizer, danbikel.lisp.Symbol)
method.
Field Summary | |
---|---|
protected double |
count
The observed count of the TrainerEvent object contained by
this map entry. |
protected TrainerEvent |
event
The TrainerEvent object contained by this map entry. |
Fields inherited from class danbikel.util.AbstractMapToPrimitive.Entry |
---|
key |
Constructor Summary | |
---|---|
Trainer.EventEntry(TrainerEvent event,
double count)
Constructs a new EventEntry instance with the specified
TrainerEvent and count. |
Method Summary | |
---|---|
double |
getDoubleValue(int idx)
Returns the double value of the specified index associated
with the key in this map entry. |
Object |
getKey()
Returns the event key associated with this map entry. |
Object |
getValue()
Throws an UnsupportedOperationException . |
boolean |
replaceKey(Object newKey)
Throws an UnsupportedOperationException . |
Object |
setValue(Object value)
Throws an UnsupportedOperationException . |
Methods inherited from class danbikel.util.AbstractMapToPrimitive.Entry |
---|
add, add, add, add, add, add, add, add, add, add, add, add, getByteValue, getByteValue, getCharValue, getCharValue, getDoubleValue, getFloatValue, getFloatValue, getIntValue, getIntValue, getLongValue, getLongValue, getShortValue, getShortValue, numBytes, numChars, numDoubles, numFloats, numInts, numLongs, numShorts, set, set, set, set, set, set, set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Field Detail |
---|
protected TrainerEvent event
TrainerEvent
object contained by this map entry.
protected double count
TrainerEvent
object contained by
this map entry.
Constructor Detail |
---|
public Trainer.EventEntry(TrainerEvent event, double count)
EventEntry
instance with the specified
TrainerEvent
and count.
event
- the TrainerEvent
of this map entrycount
- the observed count of the TrainerEvent
of this map
entryMethod Detail |
---|
public Object getKey()
getKey
in interface Map.Entry
getKey
in class AbstractMapToPrimitive.Entry
public double getDoubleValue(int idx)
AbstractMapToPrimitive.Entry
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
.
getDoubleValue
in interface MapToPrimitive.Entry
getDoubleValue
in class AbstractMapToPrimitive.Entry
idx
- the index of the double
value to retrievepublic Object getValue()
UnsupportedOperationException
.
UnsupportedOperationException
.public Object setValue(Object value)
UnsupportedOperationException
.
UnsupportedOperationException
.public boolean replaceKey(Object newKey)
UnsupportedOperationException
.
newKey
- a key equal to the current key as determined by
the current key's equals
method
UnsupportedOperationException
.
|
Parsing Engine | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |