public class LongBooleanHashMap extends Object implements MutableLongBooleanMap, 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 |
|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
boolean |
anySatisfy(BooleanPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyBooleanIterable |
asLazy() |
MutableLongBooleanMap |
asSynchronized() |
MutableLongBooleanMap |
asUnmodifiable() |
BooleanIterator |
booleanIterator() |
void |
clear() |
<V> MutableCollection<V> |
collect(BooleanToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
boolean |
containsKey(long key) |
boolean |
containsValue(boolean value) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean value) |
boolean |
equals(Object obj)
Follows the same general contract as
Map.equals(Object). |
void |
forEach(BooleanProcedure procedure) |
void |
forEachKey(LongProcedure procedure) |
void |
forEachKeyValue(LongBooleanProcedure procedure) |
void |
forEachValue(BooleanProcedure 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(). |
<V> V |
injectInto(V injectedValue,
ObjectBooleanToObjectFunction<? super V,? extends V> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
MutableLongSet |
keySet() |
LazyLongIterable |
keysView() |
RichIterable<LongBooleanPair> |
keyValuesView() |
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
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) |
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
void |
put(long key,
boolean value) |
void |
putAll(LongBooleanMap map) |
void |
readExternal(ObjectInput in) |
MutableBooleanCollection |
reject(BooleanPredicate predicate) |
LongBooleanHashMap |
reject(LongBooleanPredicate predicate) |
void |
remove(long key) |
void |
removeKey(long key) |
boolean |
removeKeyIfAbsent(long key,
boolean value) |
MutableBooleanCollection |
select(BooleanPredicate predicate) |
LongBooleanHashMap |
select(LongBooleanPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
MutableBooleanBag |
toBag() |
ImmutableLongBooleanMap |
toImmutable() |
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString()
Returns a string representation of this LongBooleanMap.
|
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) |
public 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 int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void compact()
public void clear()
clear in interface MutableLongBooleanMappublic 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 LongBooleanMappublic boolean containsValue(boolean value)
containsValue in interface LongBooleanMappublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic 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 MutableLongBooleanMappublic 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()
LongBooleanMaptoString in interface LongBooleanMaptoString in interface PrimitiveIterabletoString in class Objectpublic BooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablepublic void forEach(BooleanProcedure procedure)
forEach in interface BooleanIterablepublic void forEachValue(BooleanProcedure procedure)
forEachValue in interface LongBooleanMappublic void forEachKey(LongProcedure procedure)
forEachKey in interface LongBooleanMappublic 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 <V> V injectInto(V injectedValue,
ObjectBooleanToObjectFunction<? super V,? extends V> function)
injectInto in interface BooleanIterablepublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic MutableBooleanCollection select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableLongBooleanMappublic MutableBooleanCollection reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableLongBooleanMappublic boolean detectIfNone(BooleanPredicate predicate, boolean value)
detectIfNone in interface BooleanIterablepublic <V> MutableCollection<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableLongBooleanMappublic int count(BooleanPredicate predicate)
count in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablepublic boolean[] toArray()
toArray in interface BooleanIterablepublic MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic 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 LongBooleanMapCopyright © 2004–2017. All rights reserved.