Class AbstractSortedBidiMapDecorator
- All Implemented Interfaces:
Map,SequencedMap,SortedMap,BidiMap,IterableMap,OrderedBidiMap,OrderedMap,SortedBidiMap
- Direct Known Subclasses:
UnmodifiableSortedBidiMap
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 inverse 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
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructor that wraps (not copies). -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Gets a view of this map where the keys and values are reversed.Deprecated.Deprecated.Methods inherited from class org.apache.commons.collections.bidimap.AbstractOrderedBidiMapDecorator
firstKey, inverseOrderedBidiMap, lastKey, nextKey, orderedMapIterator, previousKeyMethods inherited from class org.apache.commons.collections.bidimap.AbstractBidiMapDecorator
getKey, inverseBidiMap, mapIterator, removeValueMethods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesMethods inherited from interface org.apache.commons.collections.BidiMap
getKey, mapIterator, put, removeValueMethods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeMethods inherited from interface org.apache.commons.collections.OrderedBidiMap
inverseOrderedBidiMapMethods inherited from interface org.apache.commons.collections.OrderedMap
firstKey, lastKey, nextKey, orderedMapIterator, previousKeyMethods inherited from interface java.util.SequencedMap
firstEntry, lastEntry, pollFirstEntry, pollLastEntry, sequencedEntrySet, sequencedKeySet, sequencedValuesMethods inherited from interface org.apache.commons.collections.SortedBidiMap
inverseBidiMap
-
Constructor Details
-
AbstractSortedBidiMapDecorator
Deprecated.Constructor that wraps (not copies).- Parameters:
map- the map to decorate, must not be null- Throws:
IllegalArgumentException- if the collection is null
-
-
Method Details
-
inverseSortedBidiMap
Deprecated.Description copied from interface:SortedBidiMapGets a view of this map where the keys and values are reversed.Changes to one map will be visible in the other and vice versa. This enables both directions of the map to be accessed as a
SortedMap.Implementations should seek to avoid creating a new object every time this method is called. See
AbstractMap.values()etc. Calling this method on the inverse map should return the original.The inverse map returned by
inverseBidiMap()should be the same object as returned by this method.- Specified by:
inverseSortedBidiMapin interfaceSortedBidiMap- Returns:
- an inverted bidirectional map
-
comparator
Deprecated.- Specified by:
comparatorin interfaceSortedMap
-
subMap
Deprecated. -
headMap
Deprecated. -
tailMap
Deprecated.
-