|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.util.TabulatedMap<KEYTYPE,VALTYPE>
public class TabulatedMap<KEYTYPE,VALTYPE>
Constructor Summary | |
---|---|
TabulatedMap()
Constructor |
Method Summary | |
---|---|
void |
add(KEYTYPE key,
VALTYPE val)
Counts the occurrance of the specified key |
long |
getCount(KEYTYPE key)
Returns the count for the specified key |
java.util.Iterator<KEYTYPE> |
getIterator()
Returns an Iterator. |
java.util.Iterator<KEYTYPE> |
getIterator(java.util.Comparator<KEYTYPE> sortBy)
Returns an Iterator. |
java.util.List<KEYTYPE> |
getKeyList()
Return a list of keys |
java.util.List<KEYTYPE> |
getKeyList(java.util.Comparator<KEYTYPE> sortBy)
Return a sorted list of keys |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TabulatedMap()
Method Detail |
---|
public java.util.Iterator<KEYTYPE> getIterator()
public java.util.Iterator<KEYTYPE> getIterator(java.util.Comparator<KEYTYPE> sortBy)
sortBy
- The Comparator by which the returned iterator is sorted
public java.util.List<KEYTYPE> getKeyList()
public java.util.List<KEYTYPE> getKeyList(java.util.Comparator<KEYTYPE> sortBy)
public void add(KEYTYPE key, VALTYPE val)
key
- The key which will be countedpublic long getCount(KEYTYPE key)
key
- The key for which the count is returned
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |