public class ByteBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableByteBooleanMap, MutableByteKeysMap, Externalizable
| Constructor and Description |
|---|
ByteBooleanHashMap() |
ByteBooleanHashMap(ByteBooleanMap map) |
ByteBooleanHashMap(int initialCapacity) |
ByteBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
MutableByteBooleanMap |
asSynchronized() |
MutableByteBooleanMap |
asUnmodifiable() |
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(Object obj) |
void |
forEachKey(ByteProcedure procedure) |
void |
forEachKeyValue(ByteBooleanProcedure procedure) |
boolean |
get(byte key) |
boolean |
getIfAbsent(byte key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(byte key,
boolean value) |
boolean |
getIfAbsentPut(byte key,
BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(byte key,
BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(byte key,
ByteToBooleanFunction function) |
boolean |
getOrThrow(byte key) |
int |
hashCode() |
MutableByteSet |
keySet() |
LazyByteIterable |
keysView() |
RichIterable<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(ByteBooleanMap map) |
void |
readExternal(ObjectInput in) |
ByteBooleanHashMap |
reject(ByteBooleanPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
boolean |
removeKeyIfAbsent(byte key,
boolean value) |
ByteBooleanHashMap |
select(ByteBooleanPredicate predicate) |
ImmutableByteBooleanMap |
toImmutable() |
String |
toString() |
boolean |
updateValue(byte key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
void |
updateValues(ByteBooleanToBooleanFunction function) |
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(ByteIterable keys) |
ByteBooleanHashMap |
withoutKey(byte key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArray, toArrayasLazy, toBag, toList, toSetgetAndPut, putPair, withAllKeyValuesinjectIntoKeyValuecollect, reject, selectforEachValue, tapallSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ByteBooleanHashMap()
public ByteBooleanHashMap(int initialCapacity)
public ByteBooleanHashMap(ByteBooleanMap map)
@Deprecated public ByteBooleanHashMap(int initialCapacity, float loadFactor)
public MutableByteBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableByteBooleanMappublic MutableByteBooleanMap asSynchronized()
asSynchronized in interface MutableByteBooleanMappublic ImmutableByteBooleanMap toImmutable()
toImmutable in interface 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 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 MutableByteBooleanMappublic ByteBooleanHashMap withoutAllKeys(ByteIterable keys)
withoutAllKeys in interface MutableByteBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
boolean value)
put in interface MutableByteBooleanMappublic void putAll(ByteBooleanMap map)
putAll in interface MutableByteBooleanMappublic void updateValues(ByteBooleanToBooleanFunction function)
updateValues in interface MutableByteBooleanMappublic boolean containsKey(byte key)
containsKey in interface ByteBooleanMapcontainsKey in interface ByteKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(byte key)
get in interface ByteBooleanMappublic boolean getIfAbsent(byte key,
boolean ifAbsent)
getIfAbsent in interface ByteBooleanMappublic boolean getOrThrow(byte key)
getOrThrow in interface ByteBooleanMappublic boolean getIfAbsentPut(byte key,
boolean value)
getIfAbsentPut in interface MutableByteBooleanMappublic boolean getIfAbsentPut(byte key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableByteBooleanMappublic <P> boolean getIfAbsentPutWith(byte key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableByteBooleanMappublic boolean getIfAbsentPutWithKey(byte key,
ByteToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableByteBooleanMappublic boolean updateValue(byte key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableByteBooleanMappublic void removeKey(byte key)
removeKey in interface MutableByteBooleanMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface MutableByteBooleanMappublic boolean removeKeyIfAbsent(byte key,
boolean value)
removeKeyIfAbsent in interface MutableByteBooleanMappublic boolean equals(Object obj)
equals in interface ByteBooleanMapequals in class Objectpublic int hashCode()
hashCode in interface ByteBooleanMaphashCode in class Objectpublic String toString()
toString in interface ByteBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterablepublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(ByteProcedure procedure)
forEachKey in interface ByteBooleanMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(ByteBooleanProcedure procedure)
forEachKeyValue in interface ByteBooleanMappublic ByteBooleanHashMap select(ByteBooleanPredicate predicate)
select in interface ByteBooleanMapselect in interface MutableByteBooleanMappublic ByteBooleanHashMap reject(ByteBooleanPredicate predicate)
reject in interface ByteBooleanMapreject in interface MutableByteBooleanMappublic LazyByteIterable keysView()
keysView in interface ByteBooleanMappublic RichIterable<ByteBooleanPair> keyValuesView()
keyValuesView in interface ByteBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableByteSet keySet()
keySet in interface ByteBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2022. All rights reserved.