Oracle

com.compoze.util
Class ValueSortedMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.compoze.util.ValueSortedMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ValueSortedMap
extends java.util.HashMap
implements java.io.Serializable

This class represents a key-value map. The entries are sorted by the value, ascending order.

Note: the values must be java.lang.String objects.

See Also:
Serialized Form

Constructor Summary
ValueSortedMap()
          Constructor.
 
Method Summary
 java.util.Set entrySet()
           
 java.util.Set keySet()
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, get, isEmpty, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

ValueSortedMap

public ValueSortedMap()
Constructor.

Method Detail

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map
Overrides:
keySet in class java.util.HashMap

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map
Overrides:
entrySet in class java.util.HashMap

Oracle

Copyright ©1999-2008 Oracle All rights reserved.