nl.knowledgeplaza.util
Class ValueSortedMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by nl.knowledgeplaza.util.ValueSortedMap
All Implemented Interfaces:
Map

public class ValueSortedMap
extends AbstractMap

A map that is sorted on value instead of key.

Version:
$Revision: 1.2 $
Author:
$Author: toeukpap $

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ValueSortedMap()
          Creates a LinearMap.
ValueSortedMap(int capacity)
          Creates a LinearMap with specified capacity.
ValueSortedMap(Map map)
           
 
Method Summary
 Set entrySet()
           
static void main(String[] args)
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValueSortedMap

public ValueSortedMap()
Creates a LinearMap.


ValueSortedMap

public ValueSortedMap(int capacity)
Creates a LinearMap with specified capacity.


ValueSortedMap

public ValueSortedMap(Map map)
Method Detail

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

main

public static void main(String[] args)

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

remove

public Object remove(Object key)
Specified by:
remove in interface Map
Overrides:
remove in class AbstractMap


Copyright © 2011 KnowledgePlaza. All Rights Reserved.