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.
| Access | Constructor and Description |
|---|---|
| public | AbstractSortedBidiMapDecorator(final SortedBidiMap<K, V>
the map to decorate, must not be null map)Constructor that wraps (not copies). |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | comparator()
Implements java. null if this map uses the natural ordering of its keys.
|
| protected SortedBidiMap | Returns: the decorated mapOverrides org. |
| public SortedMap | headMap(final K
high endpoint (exclusive) of the keys in the returned map toKey)Implements java. toKey.
|
| public SortedBidiMap | inverseBidiMap()
Overrides org. Implements org. |
| public SortedMap | subMap(final K
low endpoint (inclusive) of the keys in the returned map fromKey, final K high endpoint (exclusive) of the keys in the returned map toKey)Implements java. fromKey, inclusive, to toKey, exclusive.
|
| public SortedMap | tailMap(final K
low endpoint (inclusive) of the keys in the returned map fromKey)Implements java. fromKey.
|
| public Comparator | valueComparator()
Implements org. |
| AbstractSortedBidiMapDecorator | back to summary |
|---|---|
| public AbstractSortedBidiMapDecorator(final SortedBidiMap<K, V> map) Constructor that wraps (not copies).
| |
| comparator | back to summary |
|---|---|
| public Comparator Implements java. Doc from java. Returns the comparator used to order the keys in this map, or
| |
| decorated | back to summary |
|---|---|
| protected SortedBidiMap Overrides org. Gets the map being decorated.
| |
| headMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
strictly less than The returned map will throw an | |
| inverseBidiMap | back to summary |
|---|---|
| public SortedBidiMap Overrides org. Implements org. Doc from org. Gets 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 equally.
Implementations should seek to avoid creating a new object every time this
method is called. See
Implementations must return a
| |
| subMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys range from
The returned map will throw an | |
| tailMap | back to summary |
|---|---|
| public SortedMap Implements java. Doc from java. Returns a view of the portion of this map whose keys are
greater than or equal to The returned map will throw an | |
| valueComparator | back to summary |
|---|---|
| public Comparator Implements org. Doc from org. Get the comparator used for the values in the value-to-key map aspect.
| |