-
- All Superinterfaces:
Iterable<Map.Entry<K,V>>
,IterableMap<K,V>
,Map<K,V>
,SortedMap<K,V>
- All Known Subinterfaces:
MapData<K,V>
,MapDataBinding
,MapDownlink<K,V>
,MapLane<K,V>
,ObservableOrderedMap<K,V>
,ReducedMap<K,V,U>
- All Known Implementing Classes:
BTree
,BTreeMap
,BTreeMap
,BTreeMapView
,JoinMapLaneDownlink
,MapDataModel
,MapDataModel
,MapDataProxy
,MapDataView
,MapDownlinkView
,MapLaneView
,ValueOrderedMap
,ValueReducedMap
public interface OrderedMap<K,V> extends IterableMap<K,V>, SortedMap<K,V>
-
-
Method Summary
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
isEmpty
boolean isEmpty()
-
size
int size()
-
containsKey
boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceIterableMap<K,V>
- Specified by:
containsKey
in interfaceMap<K,V>
-
containsValue
boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceIterableMap<K,V>
- Specified by:
containsValue
in interfaceMap<K,V>
-
indexOf
int indexOf(Object key)
-
firstValue
V firstValue()
-
lastValue
V lastValue()
-
clear
void clear()
-
headMap
default OrderedMap<K,V> headMap(K toKey)
-
tailMap
default OrderedMap<K,V> tailMap(K fromKey)
-
subMap
default OrderedMap<K,V> subMap(K fromKey, K toKey)
-
values
default Collection<V> values()
-
iterator
OrderedMapCursor<K,V> iterator()
-
keyIterator
default Cursor<K> keyIterator()
- Specified by:
keyIterator
in interfaceIterableMap<K,V>
-
valueIterator
default Cursor<V> valueIterator()
- Specified by:
valueIterator
in interfaceIterableMap<K,V>
-
comparator
Comparator<? super K> comparator()
- Specified by:
comparator
in interfaceSortedMap<K,V>
-
-