public class DoubleBooleanHashMap extends AbstractMutableBooleanValuesMap implements com.gs.collections.api.map.primitive.MutableDoubleBooleanMap, MutableDoubleKeysMap, java.io.Externalizable
AbstractMutableBooleanValuesMap.AbstractBooleanValuesCollection, AbstractMutableBooleanValuesMap.SentinelValues| Constructor and Description |
|---|
DoubleBooleanHashMap() |
DoubleBooleanHashMap(com.gs.collections.api.map.primitive.DoubleBooleanMap map) |
DoubleBooleanHashMap(int initialCapacity) |
DoubleBooleanHashMap(int initialCapacity,
float loadFactor)
Deprecated.
in 5.1.0.
|
| Modifier and Type | Method and Description |
|---|---|
com.gs.collections.api.map.primitive.MutableDoubleBooleanMap |
asSynchronized() |
com.gs.collections.api.map.primitive.MutableDoubleBooleanMap |
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(double 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.DoubleProcedure procedure) |
void |
forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleBooleanProcedure procedure) |
boolean |
get(double key) |
protected boolean |
getEmptyValue() |
boolean |
getIfAbsent(double key,
boolean ifAbsent) |
boolean |
getIfAbsentPut(double key,
boolean value) |
boolean |
getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function) |
<P> boolean |
getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter) |
boolean |
getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToBooleanFunction function) |
protected int |
getOccupiedWithData() |
boolean |
getOrThrow(double 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.MutableDoubleSet |
keySet() |
com.gs.collections.api.LazyDoubleIterable |
keysView() |
com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleBooleanPair> |
keyValuesView() |
static DoubleBooleanHashMap |
newWithKeysValues(double key1,
boolean value1) |
static DoubleBooleanHashMap |
newWithKeysValues(double key1,
boolean value1,
double key2,
boolean value2) |
static DoubleBooleanHashMap |
newWithKeysValues(double key1,
boolean value1,
double key2,
boolean value2,
double key3,
boolean value3) |
static DoubleBooleanHashMap |
newWithKeysValues(double key1,
boolean value1,
double key2,
boolean value2,
double key3,
boolean value3,
double key4,
boolean value4) |
void |
put(double key,
boolean value) |
void |
putAll(com.gs.collections.api.map.primitive.DoubleBooleanMap map) |
void |
readExternal(java.io.ObjectInput in) |
DoubleBooleanHashMap |
reject(com.gs.collections.api.block.predicate.primitive.DoubleBooleanPredicate predicate) |
void |
remove(double key) |
void |
removeKey(double key) |
boolean |
removeKeyIfAbsent(double key,
boolean value) |
DoubleBooleanHashMap |
select(com.gs.collections.api.block.predicate.primitive.DoubleBooleanPredicate predicate) |
protected void |
setSentinelValuesNull() |
com.gs.collections.api.map.primitive.ImmutableDoubleBooleanMap |
toImmutable() |
java.lang.String |
toString()
Returns a string representation of this PrimitiveIterable.
|
boolean |
updateValue(double key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function) |
com.gs.collections.api.collection.primitive.MutableBooleanCollection |
values() |
DoubleBooleanHashMap |
withKeysValues(double key1,
boolean value1,
double key2,
boolean value2) |
DoubleBooleanHashMap |
withKeysValues(double key1,
boolean value1,
double key2,
boolean value2,
double key3,
boolean value3) |
DoubleBooleanHashMap |
withKeysValues(double key1,
boolean value1,
double key2,
boolean value2,
double key3,
boolean value3,
double key4,
boolean value4) |
DoubleBooleanHashMap |
withKeyValue(double key1,
boolean value1) |
DoubleBooleanHashMap |
withoutAllKeys(com.gs.collections.api.DoubleIterable keys) |
DoubleBooleanHashMap |
withoutKey(double 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 DoubleBooleanHashMap()
public DoubleBooleanHashMap(int initialCapacity)
public DoubleBooleanHashMap(com.gs.collections.api.map.primitive.DoubleBooleanMap map)
@Deprecated
public DoubleBooleanHashMap(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.MutableDoubleBooleanMap asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic com.gs.collections.api.map.primitive.MutableDoubleBooleanMap asSynchronized()
asSynchronized in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic com.gs.collections.api.map.primitive.ImmutableDoubleBooleanMap toImmutable()
toImmutable in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic static DoubleBooleanHashMap newWithKeysValues(double key1, boolean value1)
public static DoubleBooleanHashMap newWithKeysValues(double key1, boolean value1, double key2, boolean value2)
public static DoubleBooleanHashMap newWithKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3)
public static DoubleBooleanHashMap newWithKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3, double key4, boolean value4)
public DoubleBooleanHashMap withKeyValue(double key1, boolean value1)
withKeyValue in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic DoubleBooleanHashMap withKeysValues(double key1, boolean value1, double key2, boolean value2)
public DoubleBooleanHashMap withKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3)
public DoubleBooleanHashMap withKeysValues(double key1, boolean value1, double key2, boolean value2, double key3, boolean value3, double key4, boolean value4)
public DoubleBooleanHashMap withoutKey(double key)
withoutKey in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic DoubleBooleanHashMap withoutAllKeys(com.gs.collections.api.DoubleIterable keys)
withoutAllKeys in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic void compact()
public void clear()
clear in interface com.gs.collections.api.map.primitive.MutableBooleanValuesMapclear in interface MutableDoubleKeysMappublic void put(double key,
boolean value)
put in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic void putAll(com.gs.collections.api.map.primitive.DoubleBooleanMap map)
putAll in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean containsKey(double key)
containsKey in interface com.gs.collections.api.map.primitive.DoubleBooleanMapcontainsKey in interface DoubleKeysMappublic boolean containsValue(boolean value)
containsValue in interface com.gs.collections.api.map.primitive.BooleanValuesMappublic boolean get(double key)
get in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic boolean getIfAbsent(double key,
boolean ifAbsent)
getIfAbsent in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic boolean getOrThrow(double key)
getOrThrow in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic boolean getIfAbsentPut(double key,
boolean value)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean getIfAbsentPut(double key,
com.gs.collections.api.block.function.primitive.BooleanFunction0 function)
getIfAbsentPut in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic <P> boolean getIfAbsentPutWith(double key,
com.gs.collections.api.block.function.primitive.BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean getIfAbsentPutWithKey(double key,
com.gs.collections.api.block.function.primitive.DoubleToBooleanFunction function)
getIfAbsentPutWithKey in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean updateValue(double key,
boolean initialValueIfAbsent,
com.gs.collections.api.block.function.primitive.BooleanToBooleanFunction function)
updateValue in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic void removeKey(double key)
removeKey in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMapremoveKey in interface MutableDoubleKeysMappublic void remove(double key)
remove in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean removeKeyIfAbsent(double key,
boolean value)
removeKeyIfAbsent in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic boolean equals(java.lang.Object obj)
com.gs.collections.api.map.primitive.DoubleBooleanMapMap.equals(Object).equals in interface com.gs.collections.api.map.primitive.DoubleBooleanMapequals in class java.lang.Objectpublic int hashCode()
com.gs.collections.api.map.primitive.DoubleBooleanMapMap.hashCode().hashCode in interface com.gs.collections.api.map.primitive.DoubleBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
com.gs.collections.api.PrimitiveIterabletoString in interface com.gs.collections.api.map.primitive.DoubleBooleanMaptoString 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.DoubleProcedure procedure)
forEachKey in interface com.gs.collections.api.map.primitive.DoubleBooleanMapforEachKey in interface DoubleKeysMappublic void forEachKeyValue(com.gs.collections.api.block.procedure.primitive.DoubleBooleanProcedure procedure)
forEachKeyValue in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic DoubleBooleanHashMap select(com.gs.collections.api.block.predicate.primitive.DoubleBooleanPredicate predicate)
select in interface com.gs.collections.api.map.primitive.DoubleBooleanMapselect in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic DoubleBooleanHashMap reject(com.gs.collections.api.block.predicate.primitive.DoubleBooleanPredicate predicate)
reject in interface com.gs.collections.api.map.primitive.DoubleBooleanMapreject in interface com.gs.collections.api.map.primitive.MutableDoubleBooleanMappublic com.gs.collections.api.LazyDoubleIterable keysView()
keysView in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic com.gs.collections.api.RichIterable<com.gs.collections.api.tuple.primitive.DoubleBooleanPair> keyValuesView()
keyValuesView in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic 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.MutableDoubleSet keySet()
keySet in interface com.gs.collections.api.map.primitive.DoubleBooleanMappublic com.gs.collections.api.collection.primitive.MutableBooleanCollection values()
values in interface com.gs.collections.api.map.primitive.BooleanValuesMap