public class LongBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableLongBooleanMap, MutableLongKeysMap, Externalizable
| Constructor and Description |
|---|
LongBooleanHashMap() |
LongBooleanHashMap(int initialCapacity) |
LongBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
LongBooleanHashMap(LongBooleanMap map) |
| Modifier and Type | Method and Description |
|---|---|
MutableLongBooleanMap |
asSynchronized() |
MutableLongBooleanMap |
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(long key) |
boolean |
containsValue(boolean value) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongBooleanProcedure procedure) |
boolean |
get(long key) |
boolean |
getIfAbsent(long key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(long key,
boolean value) |
boolean |
getIfAbsentPut(long key,
BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(long key,
BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(long key,
LongToBooleanFunction function) |
boolean |
getOrThrow(long key) |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongBooleanPair> |
keyValuesView() |
static LongBooleanHashMap |
newWithKeysValues(long key1,
boolean value1) |
static LongBooleanHashMap |
newWithKeysValues(long key1,
boolean value1,
long key2,
boolean value2) |
static LongBooleanHashMap |
newWithKeysValues(long key1,
boolean value1,
long key2,
boolean value2,
long key3,
boolean value3) |
static LongBooleanHashMap |
newWithKeysValues(long key1,
boolean value1,
long key2,
boolean value2,
long key3,
boolean value3,
long key4,
boolean value4) |
void |
put(long key,
boolean value) |
void |
putAll(LongBooleanMap map) |
void |
readExternal(ObjectInput in) |
LongBooleanHashMap |
reject(LongBooleanPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
boolean |
removeKeyIfAbsent(long key,
boolean value) |
LongBooleanHashMap |
select(LongBooleanPredicate predicate) |
ImmutableLongBooleanMap |
toImmutable() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(long key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
MutableBooleanCollection |
values() |
LongBooleanHashMap |
withKeysValues(long key1,
boolean value1,
long key2,
boolean value2) |
LongBooleanHashMap |
withKeysValues(long key1,
boolean value1,
long key2,
boolean value2,
long key3,
boolean value3) |
LongBooleanHashMap |
withKeysValues(long key1,
boolean value1,
long key2,
boolean value2,
long key3,
boolean value3,
long key4,
boolean value4) |
LongBooleanHashMap |
withKeyValue(long key1,
boolean value1) |
LongBooleanHashMap |
withoutAllKeys(LongIterable keys) |
LongBooleanHashMap |
withoutKey(long 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 LongBooleanHashMap()
public LongBooleanHashMap(int initialCapacity)
public LongBooleanHashMap(LongBooleanMap map)
@Deprecated public LongBooleanHashMap(int initialCapacity, float loadFactor)
public MutableLongBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableLongBooleanMappublic MutableLongBooleanMap asSynchronized()
asSynchronized in interface MutableLongBooleanMappublic ImmutableLongBooleanMap toImmutable()
toImmutable in interface LongBooleanMappublic static LongBooleanHashMap newWithKeysValues(long key1, boolean value1)
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2)
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)
public static LongBooleanHashMap newWithKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)
public LongBooleanHashMap withKeyValue(long key1, boolean value1)
withKeyValue in interface MutableLongBooleanMappublic LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2)
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3)
public LongBooleanHashMap withKeysValues(long key1, boolean value1, long key2, boolean value2, long key3, boolean value3, long key4, boolean value4)
public LongBooleanHashMap withoutKey(long key)
withoutKey in interface MutableLongBooleanMappublic LongBooleanHashMap withoutAllKeys(LongIterable keys)
withoutAllKeys in interface MutableLongBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableLongKeysMappublic void put(long key,
boolean value)
put in interface MutableLongBooleanMappublic void putAll(LongBooleanMap map)
putAll in interface MutableLongBooleanMappublic boolean containsKey(long key)
containsKey in interface LongBooleanMapcontainsKey in interface LongKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(long key)
get in interface LongBooleanMappublic boolean getIfAbsent(long key,
boolean ifAbsent)
getIfAbsent in interface LongBooleanMappublic boolean getOrThrow(long key)
getOrThrow in interface LongBooleanMappublic boolean getIfAbsentPut(long key,
boolean value)
getIfAbsentPut in interface MutableLongBooleanMappublic boolean getIfAbsentPut(long key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableLongBooleanMappublic <P> boolean getIfAbsentPutWith(long key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableLongBooleanMappublic boolean getIfAbsentPutWithKey(long key,
LongToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableLongBooleanMappublic boolean updateValue(long key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableLongBooleanMappublic void removeKey(long key)
removeKey in interface MutableLongBooleanMapremoveKey in interface MutableLongKeysMappublic void remove(long key)
remove in interface MutableLongBooleanMappublic boolean removeKeyIfAbsent(long key,
boolean value)
removeKeyIfAbsent in interface MutableLongBooleanMappublic boolean equals(Object obj)
LongBooleanMapMap.equals(Object).equals in interface LongBooleanMapequals in class Objectpublic int hashCode()
LongBooleanMapMap.hashCode().hashCode in interface LongBooleanMaphashCode in class Objectpublic String toString()
PrimitiveIterabletoString in interface LongBooleanMaptoString in interface PrimitiveIterabletoString in class AbstractBooleanIterablepublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongBooleanMapforEachKey in interface LongKeysMappublic void forEachKeyValue(LongBooleanProcedure procedure)
forEachKeyValue in interface LongBooleanMappublic LongBooleanHashMap select(LongBooleanPredicate predicate)
select in interface LongBooleanMapselect in interface MutableLongBooleanMappublic LongBooleanHashMap reject(LongBooleanPredicate predicate)
reject in interface LongBooleanMapreject in interface MutableLongBooleanMappublic LazyLongIterable keysView()
keysView in interface LongBooleanMappublic RichIterable<LongBooleanPair> keyValuesView()
keyValuesView in interface LongBooleanMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic MutableLongSet keySet()
keySet in interface LongBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2016. All rights reserved.