public class ShortCharHashMap extends AbstractMutableCharValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortCharMap, Externalizable, MutableShortKeysMap
| Constructor and Description |
|---|
ShortCharHashMap() |
ShortCharHashMap(int initialCapacity) |
ShortCharHashMap(org.eclipse.collections.api.map.primitive.ShortCharMap map) |
| Modifier and Type | Method and Description |
|---|---|
char |
addToValue(short key,
char toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableShortCharMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortCharMap |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableCharIterator |
charIterator() |
void |
clear() |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
containsKey(short key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortCharProcedure procedure) |
char |
get(short key) |
char |
getIfAbsent(short key,
char ifAbsent) |
char |
getIfAbsentPut(short key,
char value) |
char |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function) |
<P> char |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter) |
char |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToCharFunction function) |
char |
getOrThrow(short key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableShortSet |
keySet() |
org.eclipse.collections.api.LazyShortIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortCharPair> |
keyValuesView() |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3) |
static ShortCharHashMap |
newWithKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3,
short key4,
char value4) |
void |
put(short key,
char value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortCharMap map) |
void |
readExternal(ObjectInput in) |
ShortCharHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortCharPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
char |
removeKeyIfAbsent(short key,
char value) |
ShortCharHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortCharPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortCharMap |
toImmutable() |
String |
toString() |
char |
updateValue(short key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function) |
org.eclipse.collections.api.collection.primitive.MutableCharCollection |
values() |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2) |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3) |
ShortCharHashMap |
withKeysValues(short key1,
char value1,
short key2,
char value2,
short key3,
char value3,
short key4,
char value4) |
ShortCharHashMap |
withKeyValue(short key1,
char value1) |
ShortCharHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortCharHashMap |
withoutKey(short key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortCharHashMap()
public ShortCharHashMap(int initialCapacity)
public ShortCharHashMap(org.eclipse.collections.api.map.primitive.ShortCharMap map)
public static ShortCharHashMap newWithKeysValues(short key1, char value1)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2, short key3, char value3)
public static ShortCharHashMap newWithKeysValues(short key1, char value1, short key2, char value2, short key3, char value3, short key4, char value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortCharMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractCharIterablepublic org.eclipse.collections.api.iterator.MutableCharIterator charIterator()
charIterator in interface org.eclipse.collections.api.CharIterablecharIterator in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectCharToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.CharIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableCharValuesMapclear in interface MutableShortKeysMappublic void put(short key,
char value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortCharMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortCharMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char removeKeyIfAbsent(short key,
char value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPut(short key,
char value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.CharFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic <P> char getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.CharFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToCharFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char addToValue(short key,
char toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic char updateValue(short key,
char initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.CharToCharFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withKeyValue(short key1, char value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2)
public ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2, short key3, char value3)
public ShortCharHashMap withKeysValues(short key1, char value1, short key2, char value2, short key3, char value3, short key4, char value4)
public ShortCharHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic ShortCharHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic org.eclipse.collections.api.map.primitive.MutableShortCharMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic org.eclipse.collections.api.map.primitive.MutableShortCharMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortCharMappublic org.eclipse.collections.api.map.primitive.ImmutableShortCharMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic char get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic char getIfAbsent(short key,
char ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic char getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortCharMapcontainsKey in interface ShortKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortCharMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortCharProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortCharPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic ShortCharHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortCharPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortCharMapselect in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic ShortCharHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortCharPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortCharMapreject in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortCharMappublic org.eclipse.collections.api.collection.primitive.MutableCharCollection values()
values in interface org.eclipse.collections.api.map.primitive.CharValuesMapCopyright © 2004–2017. All rights reserved.