com.github.andrewoma.dexx.collection.internal.adapter
Class SortedMapAdapter<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.github.andrewoma.dexx.collection.internal.adapter.MapAdapter<K,V>
com.github.andrewoma.dexx.collection.internal.adapter.SortedMapAdapter<K,V>
- All Implemented Interfaces:
- Map<K,V>, SortedMap<K,V>
public class SortedMapAdapter<K,V>
- extends MapAdapter<K,V>
- implements SortedMap<K,V>
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class com.github.andrewoma.dexx.collection.internal.adapter.MapAdapter |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size |
SortedMapAdapter
public SortedMapAdapter(SortedMap<K,V> map)
comparator
public Comparator<? super K> comparator()
- Specified by:
comparator in interface SortedMap<K,V>
subMap
@NotNull
public SortedMap<K,V> subMap(@NotNull
K fromKey,
@NotNull
K toKey)
- Specified by:
subMap in interface SortedMap<K,V>
headMap
@NotNull
public SortedMap<K,V> headMap(@NotNull
K toKey)
- Specified by:
headMap in interface SortedMap<K,V>
tailMap
@NotNull
public SortedMap<K,V> tailMap(@NotNull
K fromKey)
- Specified by:
tailMap in interface SortedMap<K,V>
firstKey
public K firstKey()
- Specified by:
firstKey in interface SortedMap<K,V>
lastKey
public K lastKey()
- Specified by:
lastKey in interface SortedMap<K,V>
Copyright © 2014. All Rights Reserved.