|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectterrenus.util.FrequencyMap<E>
public class FrequencyMap<E>
The FrequencyMap
class is used to store a number of values
(possible more than one occurrance of a value) and retrieve the most
frequently occurring value.
Constructor Summary | |
---|---|
FrequencyMap()
|
Method Summary | |
---|---|
E |
getFreqValue()
Gets the current most frequently occurring value. |
void |
put(E value)
Puts another occurrance of the value into the frequency map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FrequencyMap()
Method Detail |
---|
public void put(E value)
value
- the value to add.public E getFreqValue()
|
Terrenus HRPT v2.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |