KEYTYPE - Map key typeVALUETYPE - Map value typepublic interface ICommonsSortedMap<KEYTYPE,VALUETYPE> extends SortedMap<KEYTYPE,VALUETYPE>, ICommonsMap<KEYTYPE,VALUETYPE>
SortedMap based interface with extended functionality based
on ICommonsMap.| Modifier and Type | Method and Description |
|---|---|
default ICommonsOrderedSet<Map.Entry<KEYTYPE,VALUETYPE>> |
copyOfEntrySet() |
default ICommonsSortedSet<KEYTYPE> |
copyOfKeySet() |
default ICommonsSortedSet<KEYTYPE> |
copyOfKeySet(Predicate<? super KEYTYPE> aFilter)
Create a copy of all values matching the passed filter.
|
default <K,V> ICommonsSortedMap<K,V> |
createInstance()
Create a new
CommonsTreeMap. |
default SortedMap<KEYTYPE,VALUETYPE> |
getAsUnmodifiable() |
ICommonsSortedMap<KEYTYPE,VALUETYPE> |
getClone() |
default KEYTYPE |
getFirstKey(KEYTYPE aDefault)
Get the first key of this map or the provided default value.
|
default VALUETYPE |
getFirstValue(VALUETYPE aDefault)
Get the first value of this map or the provided default value.
|
default KEYTYPE |
getLastKey() |
default KEYTYPE |
getLastKey(KEYTYPE aDefault) |
default VALUETYPE |
getLastValue() |
default VALUETYPE |
getLastValue(VALUETYPE aDefault) |
comparator, entrySet, firstKey, headMap, keySet, lastKey, subMap, tailMap, valuesaddAll, containsAnyEntry, containsAnyKey, containsAnyValue, copyOfValues, copyOfValues, copyOfValuesMapped, copyOfValuesMapped, findFirstEntry, findFirstKey, findFirstValue, forEach, forEachKey, forEachKey, forEachValue, forEachValue, getFirstEntry, getFirstEntry, getFirstKey, getFirstValue, getSortedByKey, getSortedByValue, getSwappedKeyValues, isNotEmpty, putAll, putAll, putAllMapped, putAllMapped, putAllMapped, putIf, putIfNotNull, removeAll, removeObject, setAllclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size@Nonnull @ReturnsMutableCopy default <K,V> ICommonsSortedMap<K,V> createInstance()
CommonsTreeMap.createInstance in interface ICommonsMap<KEYTYPE,VALUETYPE>K - Map key typeV - Map value typenull.@Nonnull @ReturnsMutableCopy default ICommonsSortedSet<KEYTYPE> copyOfKeySet()
copyOfKeySet in interface ICommonsMap<KEYTYPE,VALUETYPE>null set with all keys.Map.keySet(),
ICommonsMap.copyOfKeySet(Predicate)@Nonnull @ReturnsMutableCopy default ICommonsSortedSet<KEYTYPE> copyOfKeySet(@Nullable Predicate<? super KEYTYPE> aFilter)
ICommonsMapcopyOfKeySet in interface ICommonsMap<KEYTYPE,VALUETYPE>aFilter - The filter to be applied. May be null.null set with all matching keys.Map.keySet(),
ICommonsMap.copyOfKeySet()@Nonnull @ReturnsMutableCopy default ICommonsOrderedSet<Map.Entry<KEYTYPE,VALUETYPE>> copyOfEntrySet()
copyOfEntrySet in interface ICommonsMap<KEYTYPE,VALUETYPE>null copy of the entry set.@Nullable default KEYTYPE getFirstKey(@Nullable KEYTYPE aDefault)
ICommonsMapgetFirstKey in interface ICommonsMap<KEYTYPE,VALUETYPE>aDefault - The default value to be returned if this map is empty. May be
null.ICommonsMap.getFirstKey()@Nullable default VALUETYPE getFirstValue(@Nullable VALUETYPE aDefault)
ICommonsMapgetFirstValue in interface ICommonsMap<KEYTYPE,VALUETYPE>aDefault - The default value to be returned if this map is empty. May be
null.ICommonsMap.getFirstValue()@Nonnull @CodingStyleguideUnaware default SortedMap<KEYTYPE,VALUETYPE> getAsUnmodifiable()
getAsUnmodifiable in interface ICommonsMap<KEYTYPE,VALUETYPE>null.Collections@Nonnull @ReturnsMutableCopy ICommonsSortedMap<KEYTYPE,VALUETYPE> getClone()
getClone in interface ICloneable<ICommonsMap<KEYTYPE,VALUETYPE>>Copyright © 2014–2017 Philip Helger. All rights reserved.