Externalizable, Serializable, LongIterable, LongValuesMap, MutableLongValuesMap, MutableShortLongMap, ShortLongMap, PrimitiveIterable, MutableShortKeysMap, ShortKeysMappublic class ShortLongHashMap extends AbstractMutableLongValuesMap implements MutableShortLongMap, Externalizable, MutableShortKeysMap
| Constructor | Description | 
|---|---|
| ShortLongHashMap() | |
| ShortLongHashMap(int initialCapacity) | |
| ShortLongHashMap(ShortLongMap map) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| long | addToValue(short key,
          long toBeAdded) | |
| MutableShortLongMap | asSynchronized() | |
| MutableShortLongMap | asUnmodifiable() | |
| 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 | equals(Object obj) | Follows the same general contract as  Map.equals(Object). | 
| void | forEachKey(ShortProcedure procedure) | |
| void | forEachKeyValue(ShortLongProcedure procedure) | |
| long | get(short key) | |
| long | getIfAbsent(short key,
           long ifAbsent) | |
| long | getIfAbsentPut(short key,
              long value) | |
| long | getIfAbsentPut(short key,
              LongFunction0 function) | |
| <P> long | getIfAbsentPutWith(short key,
                  LongFunction<? super P> function,
                  P parameter) | |
| long | getIfAbsentPutWithKey(short key,
                     ShortToLongFunction function) | |
| long | getOrThrow(short key) | |
| int | hashCode() | Follows the same general contract as  Map.hashCode(). | 
| <V> V | injectInto(V injectedValue,
          ObjectLongToObjectFunction<? super V,? extends V> function) | |
| MutableShortSet | keySet() | |
| LazyShortIterable | keysView() | |
| RichIterable<ShortLongPair> | keyValuesView() | |
| MutableLongIterator | longIterator() | Returns a primitive iterator that can be used to iterate over the LongIterable in an
 imperative style. | 
| static ShortLongHashMap | newWithKeysValues(short key1,
                 long value1) | |
| static ShortLongHashMap | newWithKeysValues(short key1,
                 long value1,
                 short key2,
                 long value2) | |
| static ShortLongHashMap | newWithKeysValues(short key1,
                 long value1,
                 short key2,
                 long value2,
                 short key3,
                 long value3) | |
| static ShortLongHashMap | newWithKeysValues(short key1,
                 long value1,
                 short key2,
                 long value2,
                 short key3,
                 long value3,
                 short key4,
                 long value4) | |
| void | put(short key,
   long value) | |
| void | putAll(ShortLongMap map) | |
| void | readExternal(ObjectInput in) | |
| ShortLongHashMap | reject(ShortLongPredicate predicate) | |
| void | remove(short key) | |
| void | removeKey(short key) | |
| long | removeKeyIfAbsent(short key,
                 long value) | |
| ShortLongHashMap | select(ShortLongPredicate predicate) | |
| ImmutableShortLongMap | toImmutable() | |
| String | toString() | Returns a string with the elements of this iterable separated by commas with spaces and
 enclosed in square brackets. | 
| long | updateValue(short key,
           long initialValueIfAbsent,
           LongToLongFunction function) | |
| MutableLongCollection | values() | |
| ShortLongHashMap | withKeysValues(short key1,
              long value1,
              short key2,
              long value2) | |
| ShortLongHashMap | withKeysValues(short key1,
              long value1,
              short key2,
              long value2,
              short key3,
              long value3) | |
| ShortLongHashMap | withKeysValues(short key1,
              long value1,
              short key2,
              long value2,
              short key3,
              long value3,
              short key4,
              long value4) | |
| ShortLongHashMap | withKeyValue(short key1,
            long value1) | |
| ShortLongHashMap | withoutAllKeys(ShortIterable keys) | |
| ShortLongHashMap | withoutKey(short key) | |
| void | writeExternal(ObjectOutput out) | 
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListallSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayallSatisfy, anySatisfy, asLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListcontainsValue, forEachValuecollect, reject, selectappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ShortLongHashMap()
public ShortLongHashMap(int initialCapacity)
public ShortLongHashMap(ShortLongMap map)
public static ShortLongHashMap newWithKeysValues(short key1, long value1)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2, short key3, long value3)
public static ShortLongHashMap newWithKeysValues(short key1, long value1, short key2, long value2, short key3, long value3, short key4, long value4)
public boolean equals(Object obj)
ShortLongMapMap.equals(Object).equals in interface ShortLongMapequals in class Objectpublic int hashCode()
ShortLongMapMap.hashCode().hashCode in interface ShortLongMaphashCode in class Objectpublic 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 ShortLongMaptoString in class AbstractLongIterableAbstractCollection.toString()public MutableLongIterator longIterator()
LongIterablelongIterator in interface LongIterablelongIterator in interface MutableLongValuesMappublic <V> V injectInto(V injectedValue,
                        ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface LongIterablepublic void clear()
clear in interface MutableLongValuesMapclear in interface MutableShortKeysMappublic void put(short key,
                long value)
put in interface MutableShortLongMappublic void putAll(ShortLongMap map)
putAll in interface MutableShortLongMappublic void removeKey(short key)
removeKey in interface MutableShortKeysMapremoveKey in interface MutableShortLongMappublic void remove(short key)
remove in interface MutableShortLongMappublic long removeKeyIfAbsent(short key,
                              long value)
removeKeyIfAbsent in interface MutableShortLongMappublic long getIfAbsentPut(short key,
                           long value)
getIfAbsentPut in interface MutableShortLongMappublic long getIfAbsentPut(short key,
                           LongFunction0 function)
getIfAbsentPut in interface MutableShortLongMappublic <P> long getIfAbsentPutWith(short key,
                                   LongFunction<? super P> function,
                                   P parameter)
getIfAbsentPutWith in interface MutableShortLongMappublic long getIfAbsentPutWithKey(short key,
                                  ShortToLongFunction function)
getIfAbsentPutWithKey in interface MutableShortLongMappublic long addToValue(short key,
                       long toBeAdded)
addToValue in interface MutableShortLongMappublic long updateValue(short key,
                        long initialValueIfAbsent,
                        LongToLongFunction function)
updateValue in interface MutableShortLongMappublic ShortLongHashMap withKeyValue(short key1, long value1)
withKeyValue in interface MutableShortLongMappublic ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2)
public ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2, short key3, long value3)
public ShortLongHashMap withKeysValues(short key1, long value1, short key2, long value2, short key3, long value3, short key4, long value4)
public ShortLongHashMap withoutKey(short key)
withoutKey in interface MutableShortLongMappublic ShortLongHashMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortLongMappublic MutableShortLongMap asUnmodifiable()
asUnmodifiable in interface MutableShortLongMappublic MutableShortLongMap asSynchronized()
asSynchronized in interface MutableShortLongMappublic ImmutableShortLongMap toImmutable()
toImmutable in interface ShortLongMappublic long get(short key)
get in interface ShortLongMappublic long getIfAbsent(short key,
                        long ifAbsent)
getIfAbsent in interface ShortLongMappublic long getOrThrow(short key)
getOrThrow in interface ShortLongMappublic boolean containsKey(short key)
containsKey in interface ShortKeysMapcontainsKey in interface ShortLongMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortKeysMapforEachKey in interface ShortLongMappublic void forEachKeyValue(ShortLongProcedure procedure)
forEachKeyValue in interface ShortLongMappublic LazyShortIterable keysView()
keysView in interface ShortLongMappublic RichIterable<ShortLongPair> keyValuesView()
keyValuesView in interface ShortLongMappublic ShortLongHashMap select(ShortLongPredicate predicate)
select in interface MutableShortLongMapselect in interface ShortLongMappublic ShortLongHashMap reject(ShortLongPredicate predicate)
reject in interface MutableShortLongMapreject in interface ShortLongMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public MutableShortSet keySet()
keySet in interface ShortLongMappublic MutableLongCollection values()
values in interface LongValuesMapCopyright © 2004–2017. All rights reserved.