public class ByteBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableByteBooleanMap, MutableByteKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
ByteBooleanHashMap() |
ByteBooleanHashMap(com.gs.collections.api.map.primitive.ByteBooleanMap map) |
ByteBooleanHashMap(int initialCapacity) |
ByteBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableByteBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableByteBooleanMap |
asUnmodifiable() |
com.gs.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(byte key) |
boolean |
containsValue(boolean value) |
boolean |
equals(java.lang.Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteBooleanProcedure procedure) |
boolean |
get(byte key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(byte key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(byte key,
boolean value) |
boolean |
getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(byte key) |
protected AbstractMutableBooleanValuesMap.SentinelValues |
getSentinelValues() |
protected int |
getTableSize() |
protected boolean |
getValueAtIndex(int index) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
protected boolean |
isNonSentinelAtIndex(int index) |
com.gs.collections.api.set.primitive.MutableByteSet |
keySet() |
com.gs.collections.api.LazyByteIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteBooleanPair> |
keyValuesView() |
static ByteBooleanHashMap |
newWithKeysValues(byte key1,
boolean value1) |
static ByteBooleanHashMap |
newWithKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2) |
static ByteBooleanHashMap |
newWithKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2,
byte key3,
boolean value3) |
static ByteBooleanHashMap |
newWithKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2,
byte key3,
boolean value3,
byte key4,
boolean value4) |
void |
put(byte key,
boolean value) |
void |
putAll(com.gs.collections.api.map.primitive.ByteBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
ByteBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.ByteBooleanPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
boolean |
removeKeyIfAbsent(byte key,
boolean value) |
ByteBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.ByteBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableByteBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(byte key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
values() |
ByteBooleanHashMap |
withKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2) |
ByteBooleanHashMap |
withKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2,
byte key3,
boolean value3) |
ByteBooleanHashMap |
withKeysValues(byte key1,
boolean value1,
byte key2,
boolean value2,
byte key3,
boolean value3,
byte key4,
boolean value4) |
ByteBooleanHashMap |
withKeyValue(byte key1,
boolean value1) |
ByteBooleanHashMap |
withoutAllKeys(com.gs.collections.api.ByteIterable keys) |
ByteBooleanHashMap |
withoutKey(byte key) |
void |
writeExternal(java.io.ObjectOutput out) |
addEmptyKeyValue, addRemovedKeyValue, allSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, removeEmptyKey, removeRemovedKey, select, size, toArrayappendString, appendString, asLazy, containsAll, makeString, makeString, makeString, toBag, toList, toSetclone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, reject, selectallSatisfy, 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 ByteBooleanHashMap()
public ByteBooleanHashMap(int initialCapacity)
public ByteBooleanHashMap(com.gs.collections.api.map.primitive.ByteBooleanMap map)
@Deprecated
public ByteBooleanHashMap(int initialCapacity,
float loadFactor)
protected int getOccupiedWithData()
getOccupiedWithData in class AbstractMutableBooleanValuesMapprotected AbstractMutableBooleanValuesMap.SentinelValues getSentinelValues()
getSentinelValues in class AbstractMutableBooleanValuesMapprotected void setSentinelValuesNull()
setSentinelValuesNull in class AbstractMutableBooleanValuesMapprotected boolean getEmptyValue()
getEmptyValue in class AbstractMutableBooleanValuesMapprotected int getTableSize()
getTableSize in class AbstractMutableBooleanValuesMapprotected boolean getValueAtIndex(int index)
getValueAtIndex in class AbstractMutableBooleanValuesMapprotected boolean isNonSentinelAtIndex(int index)
isNonSentinelAtIndex in class AbstractMutableBooleanValuesMappublic com.gs.collections.api.map.primitive.MutableByteBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic com.gs.collections.api.map.primitive.MutableByteBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic com.gs.collections.api.map.primitive.ImmutableByteBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic static ByteBooleanHashMap newWithKeysValues(byte key1, boolean value1)
public static ByteBooleanHashMap newWithKeysValues(byte key1, boolean value1, byte key2, boolean value2)
public static ByteBooleanHashMap newWithKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3)
public static ByteBooleanHashMap newWithKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3, byte key4, boolean value4)
public ByteBooleanHashMap withKeyValue(byte key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic ByteBooleanHashMap withKeysValues(byte key1, boolean value1, byte key2, boolean value2)
public ByteBooleanHashMap withKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3)
public ByteBooleanHashMap withKeysValues(byte key1, boolean value1, byte key2, boolean value2, byte key3, boolean value3, byte key4, boolean value4)
public ByteBooleanHashMap withoutKey(byte key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic ByteBooleanHashMap withoutAllKeys(com.gs.collections.api.ByteIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic void putAll(com.gs.collections.api.map.primitive.ByteBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean containsKey(byte key)
containsKey in interface com.gs.collections.api.map.primitive.ByteBooleanMapcontainsKey in interface ByteKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(byte key)
get in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic boolean getIfAbsent(byte key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic boolean getOrThrow(byte key)
getOrThrow in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic boolean getIfAbsentPut(byte key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean getIfAbsentPut(byte key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic <P> boolean getIfAbsentPutWith(byte key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean getIfAbsentPutWithKey(byte key,
com.gs.collections.api.block.function.primitive.ByteToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean updateValue(byte key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic void removeKey(byte key)
removeKey in interface com.gs.collections.api.map.primitive.MutableByteBooleanMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean removeKeyIfAbsent(byte key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.ByteBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.ByteBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.ByteBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.ByteBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.ByteBooleanMaptoString in interface com.gs.collections.api.PrimitiveIterabletoString in class AbstractBooleanIterablepublic com.gs.collections.api.iterator.MutableBooleanIterator booleanIterator()
booleanIterator in interface com.gs.collections.api.BooleanIterablebooleanIterator in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMappublic void forEachKey(com.gs.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.ByteBooleanMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.ByteBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic ByteBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.ByteBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.ByteBooleanMapselect in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic ByteBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.ByteBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.ByteBooleanMapreject in interface com.gs.collections.api.map.primitive.MutableByteBooleanMappublic com.gs.collections.api.LazyByteIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.ByteBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic com.gs.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface com.gs.collections.api.map.primitive.ByteBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap