public class CharShortHashMap extends AbstractMutableShortValuesMap implements org.eclipse.collections.api.map.primitive.MutableCharShortMap, Externalizable, MutableCharKeysMap
| Constructor and Description |
|---|
CharShortHashMap() |
CharShortHashMap(org.eclipse.collections.api.map.primitive.CharShortMap map) |
CharShortHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
short |
addToValue(char key,
short toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableCharShortMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableCharShortMap |
asUnmodifiable() |
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(char key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharShortProcedure procedure) |
short |
get(char key) |
short |
getIfAbsent(char key,
short ifAbsent) |
short |
getIfAbsentPut(char key,
short value) |
short |
getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function) |
<P> short |
getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter) |
short |
getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToShortFunction function) |
short |
getOrThrow(char key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableCharSet |
keySet() |
org.eclipse.collections.api.LazyCharIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharShortPair> |
keyValuesView() |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3) |
static CharShortHashMap |
newWithKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3,
char key4,
short value4) |
void |
put(char key,
short value) |
void |
putAll(org.eclipse.collections.api.map.primitive.CharShortMap map) |
void |
readExternal(ObjectInput in) |
CharShortHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.CharShortPredicate predicate) |
void |
remove(char key) |
void |
removeKey(char key) |
short |
removeKeyIfAbsent(char key,
short value) |
CharShortHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.CharShortPredicate predicate) |
org.eclipse.collections.api.iterator.MutableShortIterator |
shortIterator() |
org.eclipse.collections.api.map.primitive.ImmutableCharShortMap |
toImmutable() |
String |
toString() |
short |
updateValue(char key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function) |
org.eclipse.collections.api.collection.primitive.MutableShortCollection |
values() |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2) |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3) |
CharShortHashMap |
withKeysValues(char key1,
short value1,
char key2,
short value2,
char key3,
short value3,
char key4,
short value4) |
CharShortHashMap |
withKeyValue(char key1,
short value1) |
CharShortHashMap |
withoutAllKeys(org.eclipse.collections.api.CharIterable keys) |
CharShortHashMap |
withoutKey(char 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 CharShortHashMap()
public CharShortHashMap(int initialCapacity)
public CharShortHashMap(org.eclipse.collections.api.map.primitive.CharShortMap map)
public static CharShortHashMap newWithKeysValues(char key1, short value1)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3)
public static CharShortHashMap newWithKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.CharShortMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractShortIterablepublic org.eclipse.collections.api.iterator.MutableShortIterator shortIterator()
shortIterator in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapshortIterator in interface org.eclipse.collections.api.ShortIterablepublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectShortToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.ShortIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableShortValuesMapclear in interface MutableCharKeysMappublic void put(char key,
short value)
put in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic void putAll(org.eclipse.collections.api.map.primitive.CharShortMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic void removeKey(char key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableCharShortMapremoveKey in interface MutableCharKeysMappublic void remove(char key)
remove in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short removeKeyIfAbsent(char key,
short value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short getIfAbsentPut(char key,
short value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short getIfAbsentPut(char key,
org.eclipse.collections.api.block.function.primitive.ShortFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic <P> short getIfAbsentPutWith(char key,
org.eclipse.collections.api.block.function.primitive.ShortFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short getIfAbsentPutWithKey(char key,
org.eclipse.collections.api.block.function.primitive.CharToShortFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short addToValue(char key,
short toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic short updateValue(char key,
short initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.ShortToShortFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic CharShortHashMap withKeyValue(char key1, short value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2)
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3)
public CharShortHashMap withKeysValues(char key1, short value1, char key2, short value2, char key3, short value3, char key4, short value4)
public CharShortHashMap withoutKey(char key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic CharShortHashMap withoutAllKeys(org.eclipse.collections.api.CharIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic org.eclipse.collections.api.map.primitive.MutableCharShortMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic org.eclipse.collections.api.map.primitive.MutableCharShortMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic org.eclipse.collections.api.map.primitive.ImmutableCharShortMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.CharShortMappublic short get(char key)
get in interface org.eclipse.collections.api.map.primitive.CharShortMappublic short getIfAbsent(char key,
short ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.CharShortMappublic short getOrThrow(char key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.CharShortMappublic boolean containsKey(char key)
containsKey in interface org.eclipse.collections.api.map.primitive.CharShortMapcontainsKey in interface CharKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.CharProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.CharShortMapforEachKey in interface CharKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.CharShortProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.CharShortMappublic org.eclipse.collections.api.LazyCharIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.CharShortMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.CharShortPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.CharShortMappublic CharShortHashMap select(org.eclipse.collections.api.block.predicate.primitive.CharShortPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.CharShortMapselect in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic CharShortHashMap reject(org.eclipse.collections.api.block.predicate.primitive.CharShortPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.CharShortMapreject in interface org.eclipse.collections.api.map.primitive.MutableCharShortMappublic 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.MutableCharSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.CharShortMappublic org.eclipse.collections.api.collection.primitive.MutableShortCollection values()
values in interface org.eclipse.collections.api.map.primitive.ShortValuesMapCopyright © 2004–2017. All rights reserved.