com.thoughtworks.xstream.core.util
Class PresortedMap

java.lang.Object
  extended by com.thoughtworks.xstream.core.util.PresortedMap
All Implemented Interfaces:
Map, SortedMap

public class PresortedMap
extends Object
implements SortedMap

Author:
Jörg Schaible

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PresortedMap()
           
PresortedMap(Comparator comparator)
           
 
Method Summary
 void clear()
           
 Comparator comparator()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set entrySet()
           
 Object firstKey()
           
 Object get(Object key)
           
 SortedMap headMap(Object toKey)
           
 boolean isEmpty()
           
 Set keySet()
           
 Object lastKey()
           
 Object put(Object key, Object value)
           
 void putAll(Map m)
           
 Object remove(Object key)
           
 int size()
           
 SortedMap subMap(Object fromKey, Object toKey)
           
 SortedMap tailMap(Object fromKey)
           
 Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

PresortedMap

public PresortedMap()

PresortedMap

public PresortedMap(Comparator comparator)
Method Detail

comparator

public Comparator comparator()
Specified by:
comparator in interface SortedMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in interface SortedMap

firstKey

public Object firstKey()
Specified by:
firstKey in interface SortedMap

headMap

public SortedMap headMap(Object toKey)
Specified by:
headMap in interface SortedMap

keySet

public Set keySet()
Specified by:
keySet in interface Map
Specified by:
keySet in interface SortedMap

lastKey

public Object lastKey()
Specified by:
lastKey in interface SortedMap

subMap

public SortedMap subMap(Object fromKey,
                        Object toKey)
Specified by:
subMap in interface SortedMap

tailMap

public SortedMap tailMap(Object fromKey)
Specified by:
tailMap in interface SortedMap

values

public Collection values()
Specified by:
values in interface Map
Specified by:
values in interface SortedMap

clear

public void clear()
Specified by:
clear in interface Map

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map

get

public Object get(Object key)
Specified by:
get in interface Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map

put

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

putAll

public void putAll(Map m)
Specified by:
putAll in interface Map

remove

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

size

public int size()
Specified by:
size in interface Map


Copyright © 2012. All Rights Reserved.