java.io.Externalizable, java.io.Serializable, BooleanIterable, BooleanValuesMap, ByteBooleanMap, MutableBooleanValuesMap, MutableByteBooleanMap, PrimitiveIterable, MutableByteKeysMap, ByteKeysMappublic class ByteBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableByteBooleanMap, MutableByteKeysMap, java.io.Externalizable
| Constructor | Description |
|---|---|
ByteBooleanHashMap() |
|
ByteBooleanHashMap(int initialCapacity) |
|
ByteBooleanHashMap(int initialCapacity,
float loadFactor) |
Deprecated.
in 5.1.0.
|
ByteBooleanHashMap(ByteBooleanMap map) |
| Modifier and Type | Method | Description |
|---|---|---|
MutableByteBooleanMap |
asSynchronized() |
|
MutableByteBooleanMap |
asUnmodifiable() |
|
MutableBooleanIterator |
booleanIterator() |
Returns a primitive iterator that can be used to iterate over the BooleanIterable in an
imperative style.
|
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(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() |
Follows the same general contract as
Map.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(java.io.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() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
boolean |
updateValue(byte key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction 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(java.io.ObjectOutput out) |
asLazy, containsAll, toBag, toList, toSetallSatisfy, anySatisfy, appendString, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArrayallSatisfy, anySatisfy, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reject, select, toArray, toBag, toList, toSetforEachValue, tapisEmpty, notEmpty, sizecollect, reject, selectputPairappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, 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 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(java.lang.Object obj)
ByteBooleanMapMap.equals(Object).equals in interface ByteBooleanMapequals in class java.lang.Objectpublic int hashCode()
ByteBooleanMapMap.hashCode().hashCode in interface ByteBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString());
Assert.assertEquals("[1]", IntLists.mutable.with(1).toString());
Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString in interface ByteBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterableAbstractCollection.toString()public MutableBooleanIterator booleanIterator()
BooleanIterablebooleanIterator 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(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 MutableByteSet keySet()
keySet in interface ByteBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2018. All rights reserved.