public class ShortBooleanHashMap extends AbstractMutableBooleanValuesMap implements org.eclipse.collections.api.map.primitive.MutableShortBooleanMap, MutableShortKeysMap, Externalizable
| Constructor and Description |
|---|
ShortBooleanHashMap() |
ShortBooleanHashMap(int initialCapacity) |
ShortBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
ShortBooleanHashMap(org.eclipse.collections.api.map.primitive.ShortBooleanMap map) |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.collections.api.map.primitive.MutableShortBooleanMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableShortBooleanMap |
asUnmodifiable() |
org.eclipse.collections.api.iterator.MutableBooleanIterator |
booleanIterator() |
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 |
containsValue(boolean value) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortBooleanProcedure procedure) |
boolean |
get(short key) |
boolean |
getIfAbsent(short key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(short key,
boolean value) |
boolean |
getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToBooleanFunction function) |
boolean |
getOrThrow(short key) |
int |
hashCode() |
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.ShortBooleanPair> |
keyValuesView() |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3) |
static ShortBooleanHashMap |
newWithKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3,
short key4,
boolean value4) |
void |
put(short key,
boolean value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ShortBooleanMap map) |
void |
readExternal(ObjectInput in) |
ShortBooleanHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate) |
void |
remove(short key) |
void |
removeKey(short key) |
boolean |
removeKeyIfAbsent(short key,
boolean value) |
ShortBooleanHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableShortBooleanMap |
toImmutable() |
String |
toString() |
boolean |
updateValue(short key,
boolean initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
org.eclipse.collections.api.collection.primitive.MutableBooleanCollection |
values() |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2) |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3) |
ShortBooleanHashMap |
withKeysValues(short key1,
boolean value1,
short key2,
boolean value2,
short key3,
boolean value3,
short key4,
boolean value4) |
ShortBooleanHashMap |
withKeyValue(short key1,
boolean value1) |
ShortBooleanHashMap |
withoutAllKeys(org.eclipse.collections.api.ShortIterable keys) |
ShortBooleanHashMap |
withoutKey(short key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArrayappendString, appendString, asLazy, containsAll, makeString, makeString, makeString, toBag, toList, toSetcollect, reject, selectforEachValueallSatisfy, anySatisfy, asLazy, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, noneSatisfy, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortBooleanHashMap()
public ShortBooleanHashMap(int initialCapacity)
public ShortBooleanHashMap(org.eclipse.collections.api.map.primitive.ShortBooleanMap map)
@Deprecated public ShortBooleanHashMap(int initialCapacity, float loadFactor)
public org.eclipse.collections.api.map.primitive.MutableShortBooleanMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic org.eclipse.collections.api.map.primitive.MutableShortBooleanMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic org.eclipse.collections.api.map.primitive.ImmutableShortBooleanMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withKeyValue(short key1, boolean value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withoutKey(short key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic ShortBooleanHashMap withoutAllKeys(org.eclipse.collections.api.ShortIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic void compact()
public void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableShortKeysMappublic void put(short key,
boolean value)
put in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic void putAll(org.eclipse.collections.api.map.primitive.ShortBooleanMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean containsKey(short key)
containsKey in interface org.eclipse.collections.api.map.primitive.ShortBooleanMapcontainsKey in interface ShortKeysMappublic boolean containsValue(boolean value)
containsValue in interface org.eclipse.collections.api.map.primitive.BooleanValuesMappublic boolean get(short key)
get in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic boolean getIfAbsent(short key,
boolean ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic boolean getOrThrow(short key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic boolean getIfAbsentPut(short key,
boolean value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
org.eclipse.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic <P> boolean getIfAbsentPutWith(short key,
org.eclipse.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean getIfAbsentPutWithKey(short key,
org.eclipse.collections.api.block.function.primitive.ShortToBooleanFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean updateValue(short key,
boolean initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic void removeKey(short key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean removeKeyIfAbsent(short key,
boolean value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMappublic boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ShortBooleanMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractBooleanIterablepublic org.eclipse.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface org.eclipse.collections.api.BooleanIterablebooleanIterator in interface org.eclipse.collections.api.map.primitive.MutableBooleanValuesMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ShortProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ShortBooleanMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ShortBooleanProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic ShortBooleanHashMap select(org.eclipse.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMapselect in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic ShortBooleanHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ShortBooleanPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.MutableShortBooleanMapreject in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic org.eclipse.collections.api.LazyShortIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ShortBooleanPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic org.eclipse.collections.api.set.primitive.MutableShortSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ShortBooleanMappublic org.eclipse.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface org.eclipse.collections.api.map.primitive.BooleanValuesMapCopyright © 2004–2017. All rights reserved.