| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: if a mapping exists in this map for the keythe key key)Returns whether or not the key is present in the map. |
| public ObjectLongMap | flipUniqueValues()
Return the ObjectLongMap that is obtained by flipping the direction of this map and making the associations from value to key. |
| public void | forEachKey(LongProcedure
the procedure to invoke for each key procedure)Iterates through each key in the map, invoking the procedure for each. |
| public void | forEachKeyValue(LongObjectProcedure<? super V>
the procedure to invoke for each key/value pair procedure)Iterates through each key/value pair in the map, invoking the procedure for each. |
| public V | Returns: the value associated with the key, or the default value if no such mapping existsthe key key)Retrieves the value associated with the key. |
| public V | Returns: the value associated with the key, if one exists, or the result of invokingifAbsent if notthe key key, Function0<? extends V> ifAbsent)Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier. |
| public default <IV> IV | Returns: result of injecting the injectedValue into the mapvalue to be injected into the map injectedValue, ObjectLongObjectToObjectFunction<? super IV, ? super V, ? extends IV> to apply to the injected value and key/value pairs function)Implements the injectInto pattern with each key/value pair of the map. |
| public MutableLongSet | Returns: a mutable set containing the keys in this mapReturns a set containing all the keys in this map. |
| public LazyLongIterable | |
| public RichIterable | Returns: a view of the keys in this mapReturns a view of the key/value pairs in this map. |
| public LongObjectMap | Returns: a copy of this map without the matching key/value pairsthe predicate to determine which key/value pairs in this map should be
excluded from the returned map predicate)Return a copy of this map containing only the key/value pairs that do not match the predicate. |
| public LongObjectMap | Returns: a copy of this map with the matching key/value pairsthe predicate to determine which key/value pairs in this map should be
included in the returned map predicate)Return a copy of this map containing only the key/value pairs that match the predicate. |
| public LongObjectMap | tap(Procedure<? super V> procedure)
Redeclares org. Executes the Procedure for each element in the iterable and returns |
| public ImmutableLongObjectMap | Returns: an immutable map that is equivalent to this oneReturns a copy of this map that is immutable (if this map is mutable) or itself if it is already immutable. |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(long key) Returns whether or not the key is present in the map.
| |
| flipUniqueValues | back to summary |
|---|---|
| public ObjectLongMap Return the ObjectLongMap that is obtained by flipping the direction of this map and making the associations from value to key.
| |
| forEachKey | back to summary |
|---|---|
| public void forEachKey(LongProcedure procedure) Iterates through each key in the map, invoking the procedure for each.
| |
| forEachKeyValue | back to summary |
|---|---|
| public void forEachKeyValue(LongObjectProcedure<? super V> procedure) Iterates through each key/value pair in the map, invoking the procedure for each.
| |
| get | back to summary |
|---|---|
| public V get(long key) Retrieves the value associated with the key. If no mapping exists for the key,
| |
| getIfAbsent | back to summary |
|---|---|
| public V getIfAbsent(long key, Function0<? extends V> ifAbsent) Retrieves the value associated with the key if one exists; if it does not, returns the result of invoking the value supplier.
| |
| injectIntoKeyValue | back to summary |
|---|---|
| public default <IV> IV injectIntoKeyValue(IV injectedValue, ObjectLongObjectToObjectFunction<? super IV, ? super V, ? extends IV> function) Implements the injectInto pattern with each key/value pair of the map.
| |
| keySet | back to summary |
|---|---|
| public MutableLongSet keySet() Returns a set containing all the keys in this map. The set is backed by the map, so any modifications to the returned set will affect this map.
| |
| keysView | back to summary |
|---|---|
| public LazyLongIterable keysView() Returns a view of the keys in this map. This iterable is backed by the map, so any modifications to the underlying map will be reflected in the keys returned by the iterable.
| |
| keyValuesView | back to summary |
|---|---|
| public RichIterable Returns a view of the key/value pairs in this map. This iterable is backed by the map, so any modifications to the underlying map will be reflected in the pairs returned by the iterable.
| |
| reject | back to summary |
|---|---|
| public LongObjectMap Return a copy of this map containing only the key/value pairs that do not match the predicate.
| |
| select | back to summary |
|---|---|
| public LongObjectMap Return a copy of this map containing only the key/value pairs that match the predicate.
| |
| tap | back to summary |
|---|---|
| public LongObjectMap Redeclares org. Doc from org. Executes the Procedure for each element in the iterable and returns Example using a Java 8 lambda expression:
RichIterable<Person> tapped =
people.tap(person -> LOGGER.info(person.getName()));
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableLongObjectMap Returns a copy of this map that is immutable (if this map is mutable) or itself if it is already immutable.
| |