|
UC Berkeley Group for User Interface Research Updated November 17, 2000 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.berkeley.guir.lib.collection.SortedValueMap
A Map with any kind of uniquely named Keys with numerical Values, sorted by the values rather than by the keys. You can set whether the Map is sorted each value has a threshold max value or not, and whether the sum of the values has a threshold max value or not.
This software is distributed under the Berkeley Software License.
Revisions: - GUIRLib-v1.0-1.0.0, Jun 16 1997, JH Created class - GUIRLib-v1.2-1.0.0, Jun 22 2000, JH Touched for GUIRLib release - GUIRLib-v1.3-1.0.0, Aug 11 2000, JH Touched for GUIRLib release - GUIRLib-v1.4-1.0.0, Aug 31 2000, JH Touched for GUIRLib release
Constructor Summary | |
SortedValueMap(Comparator newComp)
|
Method Summary | |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
Set |
entrySet()
|
boolean |
equals(Object obj)
|
Object |
get(Object obj)
|
Object |
getFirstKey()
Get the key at the beginning of the map. |
Object |
getFirstValue()
Get the value at the beginning of the map. |
Object |
getLargestKey()
Get the key with the largest value. |
Object |
getLargestValue()
Get the largest value stored. |
Object |
getLastKey()
Get the key at the end of the map. |
Object |
getLastValue()
Get the value at the end of the map. |
Object |
getSmallestKey()
Get the key with the smallest value. |
Object |
getSmallestValue()
Get the smallest value stored. |
boolean |
isEmpty()
|
Set |
keySet()
|
static void |
main(String[] argv)
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map newMap)
|
Object |
remove(Object key)
|
void |
setAscending(boolean flag)
Use this BEFORE you stick in items. |
static void |
setDefaultAscending(boolean flag)
Set the default value for ascending or descending order. |
int |
size()
|
String |
toString()
|
Collection |
values()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SortedValueMap(Comparator newComp)
Method Detail |
public void setAscending(boolean flag)
flag
- is true if ascending order, false if descending.public static void setDefaultAscending(boolean flag)
flag
- is true if new SortedNumericalMaps should sort in ascending
order, false if in descending order.public void clear()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public Set entrySet()
public boolean equals(Object obj)
equals
in class Object
public Object get(Object obj)
public boolean isEmpty()
public Set keySet()
public Object put(Object key, Object value)
public void putAll(Map newMap)
public Object remove(Object key)
public int size()
public Collection values()
public Object getFirstKey()
public Object getLastKey()
public Object getFirstValue()
public Object getLastValue()
public Object getLargestKey()
public Object getSmallestKey()
public Object getLargestValue()
public Object getSmallestValue()
public String toString()
toString
in class Object
public static void main(String[] argv)
|
Copyright Information | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |