java.io.Externalizable, java.io.Serializable, BooleanIterable, BooleanValuesMap, MutableBooleanValuesMap, MutableShortBooleanMap, ShortBooleanMap, PrimitiveIterable, MutableShortKeysMap, ShortKeysMappublic class ShortBooleanHashMap extends AbstractMutableBooleanValuesMap implements MutableShortBooleanMap, MutableShortKeysMap, java.io.Externalizable
| Constructor | Description | 
|---|---|
| ShortBooleanHashMap() | |
| ShortBooleanHashMap(int initialCapacity) | |
| ShortBooleanHashMap(int initialCapacity,
                   float loadFactor) | Deprecated. 
 in 5.1.0. | 
| ShortBooleanHashMap(ShortBooleanMap map) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| MutableShortBooleanMap | asSynchronized() | |
| MutableShortBooleanMap | 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(short key) | |
| boolean | containsValue(boolean value) | |
| boolean | equals(java.lang.Object obj) | Follows the same general contract as  Map.equals(Object). | 
| void | forEachKey(ShortProcedure procedure) | |
| void | forEachKeyValue(ShortBooleanProcedure procedure) | |
| boolean | get(short key) | |
| boolean | getIfAbsent(short key,
           boolean ifAbsent) | |
| boolean | getIfAbsentPut(short key,
              boolean value) | |
| boolean | getIfAbsentPut(short key,
              BooleanFunction0 function) | |
| <P> boolean | getIfAbsentPutWith(short key,
                  BooleanFunction<? super P> function,
                  P parameter) | |
| boolean | getIfAbsentPutWithKey(short key,
                     ShortToBooleanFunction function) | |
| boolean | getOrThrow(short key) | |
| int | hashCode() | Follows the same general contract as  Map.hashCode(). | 
| MutableShortSet | keySet() | |
| LazyShortIterable | keysView() | |
| RichIterable<ShortBooleanPair> | keyValuesView() | |
| static ShortBooleanHashMap | newWithKeysValues(short key1,
                 boolean value1) | |
| static ShortBooleanHashMap | newWithKeysValues(short key1,
                 boolean value1,
                 short key2,
                 boolean value2) | |
| static ShortBooleanHashMap | newWithKeysValues(short key1,
                 boolean value1,
                 short key2,
                 boolean value2,
                 short key3,
                 boolean value3) | |
| static ShortBooleanHashMap | newWithKeysValues(short key1,
                 boolean value1,
                 short key2,
                 boolean value2,
                 short key3,
                 boolean value3,
                 short key4,
                 boolean value4) | |
| void | put(short key,
   boolean value) | |
| void | putAll(ShortBooleanMap map) | |
| void | readExternal(java.io.ObjectInput in) | |
| ShortBooleanHashMap | reject(ShortBooleanPredicate predicate) | |
| void | remove(short key) | |
| void | removeKey(short key) | |
| boolean | removeKeyIfAbsent(short key,
                 boolean value) | |
| ShortBooleanHashMap | select(ShortBooleanPredicate predicate) | |
| ImmutableShortBooleanMap | 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(short key,
           boolean initialValueIfAbsent,
           BooleanToBooleanFunction function) | |
| MutableBooleanCollection | values() | |
| ShortBooleanHashMap | withKeysValues(short key1,
              boolean value1,
              short key2,
              boolean value2) | |
| ShortBooleanHashMap | withKeysValues(short key1,
              boolean value1,
              short key2,
              boolean value2,
              short key3,
              boolean value3) | |
| ShortBooleanHashMap | withKeysValues(short key1,
              boolean value1,
              short key2,
              boolean value2,
              short key3,
              boolean value3,
              short key4,
              boolean value4) | |
| ShortBooleanHashMap | withKeyValue(short key1,
            boolean value1) | |
| ShortBooleanHashMap | withoutAllKeys(ShortIterable keys) | |
| ShortBooleanHashMap | withoutKey(short key) | |
| void | writeExternal(java.io.ObjectOutput out) | 
asLazy, containsAll, toBag, toList, toSetallSatisfy, anySatisfy, appendString, chunk, collect, contains, containsAll, count, detectIfNone, each, forEach, forEachValue, injectInto, isEmpty, noneSatisfy, notEmpty, reject, select, size, toArrayallSatisfy, anySatisfy, asLazy, chunk, 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, tapcollect, reject, selectputPairappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortBooleanHashMap()
public ShortBooleanHashMap(int initialCapacity)
public ShortBooleanHashMap(ShortBooleanMap map)
@Deprecated
public ShortBooleanHashMap(int initialCapacity,
                           float loadFactor)
public MutableShortBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableShortBooleanMappublic MutableShortBooleanMap asSynchronized()
asSynchronized in interface MutableShortBooleanMappublic ImmutableShortBooleanMap toImmutable()
toImmutable in interface ShortBooleanMappublic static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public static ShortBooleanHashMap newWithKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withKeyValue(short key1, boolean value1)
withKeyValue in interface MutableShortBooleanMappublic ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3)
public ShortBooleanHashMap withKeysValues(short key1, boolean value1, short key2, boolean value2, short key3, boolean value3, short key4, boolean value4)
public ShortBooleanHashMap withoutKey(short key)
withoutKey in interface MutableShortBooleanMappublic ShortBooleanHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortBooleanMappublic void compact()
public void clear()
clear in interface MutableBooleanValuesMapclear in interface MutableShortKeysMappublic void put(short key,
                boolean value)
put in interface MutableShortBooleanMappublic void putAll(ShortBooleanMap map)
putAll in interface MutableShortBooleanMappublic boolean containsKey(short key)
containsKey in interface ShortBooleanMapcontainsKey in interface ShortKeysMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic boolean get(short key)
get in interface ShortBooleanMappublic boolean getIfAbsent(short key,
                           boolean ifAbsent)
getIfAbsent in interface ShortBooleanMappublic boolean getOrThrow(short key)
getOrThrow in interface ShortBooleanMappublic boolean getIfAbsentPut(short key,
                              boolean value)
getIfAbsentPut in interface MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
                              BooleanFunction0 function)
getIfAbsentPut in interface MutableShortBooleanMappublic <P> boolean getIfAbsentPutWith(short key,
                                      BooleanFunction<? super P> function,
                                      P parameter)
getIfAbsentPutWith in interface MutableShortBooleanMappublic boolean getIfAbsentPutWithKey(short key,
                                     ShortToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableShortBooleanMappublic boolean updateValue(short key,
                           boolean initialValueIfAbsent,
                           BooleanToBooleanFunction function)
updateValue in interface MutableShortBooleanMappublic void removeKey(short key)
removeKey in interface MutableShortBooleanMapremoveKey in interface MutableShortKeysMappublic void remove(short key)
remove in interface MutableShortBooleanMappublic boolean removeKeyIfAbsent(short key,
                                 boolean value)
removeKeyIfAbsent in interface MutableShortBooleanMappublic boolean equals(java.lang.Object obj)
ShortBooleanMapMap.equals(Object).equals in interface ShortBooleanMapequals in class java.lang.Objectpublic int hashCode()
ShortBooleanMapMap.hashCode().hashCode in interface ShortBooleanMaphashCode 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 PrimitiveIterabletoString in interface ShortBooleanMaptoString in class AbstractBooleanIterableAbstractCollection.toString()public MutableBooleanIterator booleanIterator()
BooleanIterablebooleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortBooleanMapforEachKey in interface ShortKeysMappublic void forEachKeyValue(ShortBooleanProcedure procedure)
forEachKeyValue in interface ShortBooleanMappublic ShortBooleanHashMap select(ShortBooleanPredicate predicate)
select in interface MutableShortBooleanMapselect in interface ShortBooleanMappublic ShortBooleanHashMap reject(ShortBooleanPredicate predicate)
reject in interface MutableShortBooleanMapreject in interface ShortBooleanMappublic LazyShortIterable keysView()
keysView in interface ShortBooleanMappublic RichIterable<ShortBooleanPair> keyValuesView()
keyValuesView in interface ShortBooleanMappublic 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 MutableShortSet keySet()
keySet in interface ShortBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMapCopyright © 2004–2018. All rights reserved.