Class AbstractSortedMapDecorator
- java.lang.Object
-
- org.apache.commons.collections.map.AbstractMapDecorator
-
- org.apache.commons.collections.map.AbstractSortedMapDecorator
-
- All Implemented Interfaces:
java.util.Map
,java.util.SortedMap
- Direct Known Subclasses:
FixedSizeSortedMap
,UnmodifiableSortedMap
@Deprecated(since="2021-04-30") public abstract class AbstractSortedMapDecorator extends AbstractMapDecorator implements java.util.SortedMap
Deprecated.Commons Collections 3 is in maintenance mode. Commons Collections 4 should be used instead.Provides a base decorator that enables additional functionality to be added to a Map via decoration.Methods are forwarded directly to the decorated map.
This implementation does not perform any special processing with the map views. Instead it simply returns the set/collection from the wrapped map. This may be undesirable, for example if you are trying to write a validating implementation it would provide a loophole around the validation. But, you might want that loophole, so this class is kept simple.
- Since:
- Commons Collections 3.0
-
-
Constructor Summary
Constructors Constructor Description AbstractSortedMapDecorator(java.util.SortedMap map)
Deprecated.Constructor that wraps (not copies).
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Comparator
comparator()
Deprecated.java.lang.Object
firstKey()
Deprecated.java.util.SortedMap
headMap(java.lang.Object toKey)
Deprecated.java.lang.Object
lastKey()
Deprecated.java.util.SortedMap
subMap(java.lang.Object fromKey, java.lang.Object toKey)
Deprecated.java.util.SortedMap
tailMap(java.lang.Object fromKey)
Deprecated.-
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
-
-
-
-
Method Detail
-
comparator
public java.util.Comparator comparator()
Deprecated.- Specified by:
comparator
in interfacejava.util.SortedMap
-
firstKey
public java.lang.Object firstKey()
Deprecated.- Specified by:
firstKey
in interfacejava.util.SortedMap
-
headMap
public java.util.SortedMap headMap(java.lang.Object toKey)
Deprecated.- Specified by:
headMap
in interfacejava.util.SortedMap
-
lastKey
public java.lang.Object lastKey()
Deprecated.- Specified by:
lastKey
in interfacejava.util.SortedMap
-
subMap
public java.util.SortedMap subMap(java.lang.Object fromKey, java.lang.Object toKey)
Deprecated.- Specified by:
subMap
in interfacejava.util.SortedMap
-
tailMap
public java.util.SortedMap tailMap(java.lang.Object fromKey)
Deprecated.- Specified by:
tailMap
in interfacejava.util.SortedMap
-
-