public class ByteLongHashMap extends AbstractMutableLongValuesMap implements org.eclipse.collections.api.map.primitive.MutableByteLongMap, Externalizable, MutableByteKeysMap
| Constructor and Description |
|---|
ByteLongHashMap() |
ByteLongHashMap(org.eclipse.collections.api.map.primitive.ByteLongMap map) |
ByteLongHashMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
long |
addToValue(byte key,
long toBeAdded) |
org.eclipse.collections.api.map.primitive.MutableByteLongMap |
asSynchronized() |
org.eclipse.collections.api.map.primitive.MutableByteLongMap |
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(byte key) |
boolean |
equals(Object obj) |
void |
forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure) |
void |
forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteLongProcedure procedure) |
long |
get(byte key) |
long |
getIfAbsent(byte key,
long ifAbsent) |
long |
getIfAbsentPut(byte key,
long value) |
long |
getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function) |
<P> long |
getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter) |
long |
getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToLongFunction function) |
long |
getOrThrow(byte key) |
int |
hashCode() |
<V> V |
injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function) |
org.eclipse.collections.api.set.primitive.MutableByteSet |
keySet() |
org.eclipse.collections.api.LazyByteIterable |
keysView() |
org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteLongPair> |
keyValuesView() |
org.eclipse.collections.api.iterator.MutableLongIterator |
longIterator() |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
static ByteLongHashMap |
newWithKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
void |
put(byte key,
long value) |
void |
putAll(org.eclipse.collections.api.map.primitive.ByteLongMap map) |
void |
readExternal(ObjectInput in) |
ByteLongHashMap |
reject(org.eclipse.collections.api.block.predicate.primitive.ByteLongPredicate predicate) |
void |
remove(byte key) |
void |
removeKey(byte key) |
long |
removeKeyIfAbsent(byte key,
long value) |
ByteLongHashMap |
select(org.eclipse.collections.api.block.predicate.primitive.ByteLongPredicate predicate) |
org.eclipse.collections.api.map.primitive.ImmutableByteLongMap |
toImmutable() |
String |
toString() |
long |
updateValue(byte key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function) |
org.eclipse.collections.api.collection.primitive.MutableLongCollection |
values() |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3) |
ByteLongHashMap |
withKeysValues(byte key1,
long value1,
byte key2,
long value2,
byte key3,
long value3,
byte key4,
long value4) |
ByteLongHashMap |
withKeyValue(byte key1,
long value1) |
ByteLongHashMap |
withoutAllKeys(org.eclipse.collections.api.ByteIterable keys) |
ByteLongHashMap |
withoutKey(byte key) |
void |
writeExternal(ObjectOutput out) |
allSatisfy, anySatisfy, appendString, collect, contains, containsAll, containsValue, count, detectIfNone, each, forEach, forEachValue, isEmpty, max, min, noneSatisfy, notEmpty, reject, select, size, sum, toArrayappendString, appendString, asLazy, average, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedListcollect, reject, selectcontainsValue, forEachValueallSatisfy, anySatisfy, asLazy, average, contains, containsAll, containsAll, count, detectIfNone, each, forEach, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, sum, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeisEmpty, notEmpty, sizepublic ByteLongHashMap()
public ByteLongHashMap(int initialCapacity)
public ByteLongHashMap(org.eclipse.collections.api.map.primitive.ByteLongMap map)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public static ByteLongHashMap newWithKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
public boolean equals(Object obj)
public int hashCode()
public String toString()
toString in interface org.eclipse.collections.api.map.primitive.ByteLongMaptoString in interface org.eclipse.collections.api.PrimitiveIterabletoString in class AbstractLongIterablepublic org.eclipse.collections.api.iterator.MutableLongIterator longIterator()
longIterator in interface org.eclipse.collections.api.LongIterablelongIterator in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMappublic <V> V injectInto(V injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectLongToObjectFunction<? super V,? extends V> function)
injectInto in interface org.eclipse.collections.api.LongIterablepublic void clear()
clear in interface org.eclipse.collections.api.map.primitive.MutableLongValuesMapclear in interface MutableByteKeysMappublic void put(byte key,
long value)
put in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic void putAll(org.eclipse.collections.api.map.primitive.ByteLongMap map)
putAll in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic void removeKey(byte key)
removeKey in interface org.eclipse.collections.api.map.primitive.MutableByteLongMapremoveKey in interface MutableByteKeysMappublic void remove(byte key)
remove in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long removeKeyIfAbsent(byte key,
long value)
removeKeyIfAbsent in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPut(byte key,
long value)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPut(byte key,
org.eclipse.collections.api.block.function.primitive.LongFunction0 function)
getIfAbsentPut in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic <P> long getIfAbsentPutWith(byte key,
org.eclipse.collections.api.block.function.primitive.LongFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long getIfAbsentPutWithKey(byte key,
org.eclipse.collections.api.block.function.primitive.ByteToLongFunction function)
getIfAbsentPutWithKey in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long addToValue(byte key,
long toBeAdded)
addToValue in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic long updateValue(byte key,
long initialValueIfAbsent,
org.eclipse.collections.api.block.function.primitive.LongToLongFunction function)
updateValue in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withKeyValue(byte key1, long value1)
withKeyValue in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3)
public ByteLongHashMap withKeysValues(byte key1, long value1, byte key2, long value2, byte key3, long value3, byte key4, long value4)
public ByteLongHashMap withoutKey(byte key)
withoutKey in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap withoutAllKeys(org.eclipse.collections.api.ByteIterable keys)
withoutAllKeys in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic org.eclipse.collections.api.map.primitive.MutableByteLongMap asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic org.eclipse.collections.api.map.primitive.MutableByteLongMap asSynchronized()
asSynchronized in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic org.eclipse.collections.api.map.primitive.ImmutableByteLongMap toImmutable()
toImmutable in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic long get(byte key)
get in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic long getIfAbsent(byte key,
long ifAbsent)
getIfAbsent in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic long getOrThrow(byte key)
getOrThrow in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic boolean containsKey(byte key)
containsKey in interface org.eclipse.collections.api.map.primitive.ByteLongMapcontainsKey in interface ByteKeysMappublic void forEachKey(org.eclipse.collections.api.block.procedure.primitive.ByteProcedure procedure)
forEachKey in interface org.eclipse.collections.api.map.primitive.ByteLongMapforEachKey in interface ByteKeysMappublic void forEachKeyValue(org.eclipse.collections.api.block.procedure.primitive.ByteLongProcedure procedure)
forEachKeyValue in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic org.eclipse.collections.api.LazyByteIterable keysView()
keysView in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic org.eclipse.collections.api.RichIterable<org.eclipse.collections.api.tuple.primitive.ByteLongPair> keyValuesView()
keyValuesView in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic ByteLongHashMap select(org.eclipse.collections.api.block.predicate.primitive.ByteLongPredicate predicate)
select in interface org.eclipse.collections.api.map.primitive.ByteLongMapselect in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic ByteLongHashMap reject(org.eclipse.collections.api.block.predicate.primitive.ByteLongPredicate predicate)
reject in interface org.eclipse.collections.api.map.primitive.ByteLongMapreject in interface org.eclipse.collections.api.map.primitive.MutableByteLongMappublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void compact()
public org.eclipse.collections.api.set.primitive.MutableByteSet keySet()
keySet in interface org.eclipse.collections.api.map.primitive.ByteLongMappublic org.eclipse.collections.api.collection.primitive.MutableLongCollection values()
values in interface org.eclipse.collections.api.map.primitive.LongValuesMapCopyright © 2004–2017. All rights reserved.