K - type of contained keysV - type of contained valuespublic interface XMap<K,V> extends XProcessingMap<K,V>, XPutGetMap<K,V>, XSet<KeyValue<K,V>>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XMap.Bridge<K,V> |
static interface |
XMap.Creator<K,V> |
static interface |
XMap.EntriesBridge<K,V> |
static interface |
XMap.Keys<K,V> |
static interface |
XMap.Satellite<K,V> |
static interface |
XMap.Values<K,V> |
XRemovingMap.Factory<K,V>XSet.Factory<E>XIterable.Executor<E>Copyable.Static| Modifier and Type | Method and Description |
|---|---|
boolean |
add(K key,
V value)
Adds the passed key and value as an entry if key is not yet contained.
|
XMap<K,V> |
addAll(KeyValue<K,V>... elements) |
XMap<K,V> |
addAll(KeyValue<K,V>[] elements,
int srcStartIndex,
int srcLength) |
XMap<K,V> |
addAll(XGettingCollection<? extends KeyValue<K,V>> elements) |
XMap<K,V> |
copy()
Creates a true copy of this collection which references the same elements as this collection does
at the time the method is called.
|
V |
get(K key) |
XImmutableMap<K,V> |
immure()
Provides an instance of an immutable collection type with equal behavior and data as this instance.
|
XMap.Keys<K,V> |
keys() |
boolean |
nullKeyAllowed() |
boolean |
nullValuesAllowed() |
XMap.EntriesBridge<K,V> |
old() |
XMap.Bridge<K,V> |
oldMap() |
boolean |
put(K key,
V value)
Ensures the passed key and value to be contained as an entry in the map.
|
XMap<K,V> |
putAll(KeyValue<K,V>... elements)
Ensures the passed key-value-pairs to be contained as entries in the map.
|
XMap<K,V> |
putAll(KeyValue<K,V>[] elements,
int srcStartIndex,
int srcLength)
Ensures the passed key-value-pairs to be contained as entries in the map.
|
KeyValue<K,V> |
putGet(K key,
V value)
Ensures the passed key and value to be contained as an entry in the map.
|
V |
searchValue(Predicate<? super K> keyPredicate) |
boolean |
set(K key,
V value)
Sets the passed key and value to an appropriate entry if one can be found.
|
KeyValue<K,V> |
setGet(K key,
V value)
Sets the passed key and value to an appropriate entry if one can be found.
|
boolean |
valuePut(K sampleKey,
V value)
Ensures the passed value to be either set to an existing entry equal to sampleKey or inserted as a new one.
|
V |
valuePutGet(K sampleKey,
V value)
Ensures the passed value to be either set to an existing entry appropriate to sampleKey or inserted as a new one.
|
XMap.Values<K,V> |
values() |
boolean |
valueSet(K sampleKey,
V value)
Sets only the passed value to an existing entry appropriate to the passed sampleKey.
|
V |
valueSetGet(K sampleKey,
V value)
Sets only the passed value to an existing entry appropriate to the passed sampleKey.
|
removeForreplaceaddGet, ensure, substitutelookup, query, viewcollectorputGet, replaceaddGet, deduplicateapplies, contains, containsAll, containsId, containsSearched, copyTo, count, countBy, distinct, distinct, equality, equals, equals, equalsContent, except, filterTo, get, hashCode, hasVolatileElements, intersect, intSize, iterator, join, max, min, nullContained, search, seek, size, toArray, toArray, unionforEach, spliteratornullPut, putaccept, add, nullAddnullAllowedcurrentCapacity, currentFreeCapacity, ensureCapacity, ensureFreeCapacityisFull, maximumCapacity, remainingCapacityfetch, iterate, moveTo, pinch, removeBy, removeDuplicates, retrieve, retrieveByprocessclear, consolidate, nullRemove, optimize, remove, removeAll, removeDuplicates, removeOne, retainAll, truncateXMap.Keys<K,V> keys()
keys in interface XGettingMap<K,V>keys in interface XProcessingMap<K,V>XMap.Values<K,V> values()
values in interface XGettingMap<K,V>values in interface XProcessingMap<K,V>XMap.EntriesBridge<K,V> old()
old in interface XGettingCollection<KeyValue<K,V>>old in interface XGettingMap<K,V>XMap.Bridge<K,V> oldMap()
oldMap in interface XGettingMap<K,V>XMap<K,V> copy()
XGettingCollectioncopy in interface Copyablecopy in interface XAddGetCollection<KeyValue<K,V>>copy in interface XAddGetSet<KeyValue<K,V>>copy in interface XCollection<KeyValue<K,V>>copy in interface XGettingCollection<KeyValue<K,V>>copy in interface XGettingMap<K,V>copy in interface XGettingSet<KeyValue<K,V>>copy in interface XProcessingMap<K,V>copy in interface XProcessingSet<KeyValue<K,V>>copy in interface XPutGetCollection<KeyValue<K,V>>copy in interface XPutGetSet<KeyValue<K,V>>copy in interface XSet<KeyValue<K,V>>boolean nullKeyAllowed()
nullKeyAllowed in interface XAddingMap<K,V>nullKeyAllowed in interface XGettingMap<K,V>boolean nullValuesAllowed()
nullValuesAllowed in interface XAddingMap<K,V>nullValuesAllowed in interface XGettingMap<K,V>boolean add(K key, V value)
add in interface XAddingMap<K,V>key - to addvalue - to addtrue if element was added; false if notboolean put(K key, V value)
put in interface XPuttingMap<K,V>key - to addvalue - to addtrue if element was added; false if notboolean set(K key, V value)
set in interface XAddingMap<K,V>key - to find element to changevalue - to settrue if element was changed; false if notKeyValue<K,V> putGet(K key, V value)
putGet in interface XPutGetMap<K,V>key - to addvalue - to addnullKeyValue<K,V> setGet(K key, V value)
key - to find element to changevalue - to setboolean valuePut(K sampleKey, V value)
valuePut in interface XPuttingMap<K,V>sampleKey - to find the an existing elementvalue - to inserttrue if element was changed; false if notboolean valueSet(K sampleKey, V value)
valueSet in interface XAddingMap<K,V>sampleKey - to find the an existing elementvalue - to settrue if element was changed; false if notV valuePutGet(K sampleKey, V value)
sampleKey - to find the an existing elementvalue - to addV valueSetGet(K sampleKey, V value)
sampleKey - to find the an existing elementvalue - to addV searchValue(Predicate<? super K> keyPredicate)
searchValue in interface XGettingMap<K,V>XImmutableMap<K,V> immure()
XGettingMapIf this instance already is of an immutable collection type, it returns itself.
immure in interface XGettingCollection<KeyValue<K,V>>immure in interface XGettingMap<K,V>immure in interface XGettingSet<KeyValue<K,V>>immure in interface XProcessingSet<KeyValue<K,V>>XMap<K,V> putAll(KeyValue<K,V>... elements)
putAll in interface XCollection<KeyValue<K,V>>putAll in interface XPutGetCollection<KeyValue<K,V>>putAll in interface XPutGetSet<KeyValue<K,V>>putAll in interface XPuttingCollection<KeyValue<K,V>>putAll in interface XPuttingSet<KeyValue<K,V>>putAll in interface XSet<KeyValue<K,V>>elements - to addXMap<K,V> putAll(KeyValue<K,V>[] elements, int srcStartIndex, int srcLength)
putAll in interface XCollection<KeyValue<K,V>>putAll in interface XPutGetCollection<KeyValue<K,V>>putAll in interface XPutGetSet<KeyValue<K,V>>putAll in interface XPuttingCollection<KeyValue<K,V>>putAll in interface XPuttingSet<KeyValue<K,V>>putAll in interface XSet<KeyValue<K,V>>elements - to addsrcStartIndex - start index of elements-array to add to collectionsrcLength - length of elements-array to add to collectionXMap<K,V> addAll(KeyValue<K,V>... elements)
addAll in interface XAddGetCollection<KeyValue<K,V>>addAll in interface XAddGetSet<KeyValue<K,V>>addAll in interface XAddingCollection<KeyValue<K,V>>addAll in interface XAddingSet<KeyValue<K,V>>addAll in interface XCollection<KeyValue<K,V>>addAll in interface XPutGetCollection<KeyValue<K,V>>addAll in interface XPutGetSet<KeyValue<K,V>>addAll in interface XPuttingSet<KeyValue<K,V>>addAll in interface XSet<KeyValue<K,V>>XMap<K,V> addAll(KeyValue<K,V>[] elements, int srcStartIndex, int srcLength)
addAll in interface XAddGetCollection<KeyValue<K,V>>addAll in interface XAddGetSet<KeyValue<K,V>>addAll in interface XAddingCollection<KeyValue<K,V>>addAll in interface XAddingSet<KeyValue<K,V>>addAll in interface XCollection<KeyValue<K,V>>addAll in interface XPutGetCollection<KeyValue<K,V>>addAll in interface XPutGetSet<KeyValue<K,V>>addAll in interface XPuttingSet<KeyValue<K,V>>addAll in interface XSet<KeyValue<K,V>>XMap<K,V> addAll(XGettingCollection<? extends KeyValue<K,V>> elements)
addAll in interface XAddGetCollection<KeyValue<K,V>>addAll in interface XAddGetSet<KeyValue<K,V>>addAll in interface XAddingCollection<KeyValue<K,V>>addAll in interface XAddingSet<KeyValue<K,V>>addAll in interface XCollection<KeyValue<K,V>>addAll in interface XPutGetCollection<KeyValue<K,V>>addAll in interface XPutGetSet<KeyValue<K,V>>addAll in interface XPuttingSet<KeyValue<K,V>>addAll in interface XSet<KeyValue<K,V>>Copyright © 2022 MicroStream Software. All rights reserved.