| Modifier and Type | Method and Description |
|---|---|
| public default boolean | |
| 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 boolean | |
| public CharIntMap | flipUniqueValues()
Return the CharIntMap that is obtained by flipping the direction of this map and making the associations from value to key. |
| public void | forEachKey(IntProcedure
the procedure to invoke for each key procedure)Iterates through each key in the map, invoking the procedure for each. |
| public void | forEachKeyValue(IntCharProcedure
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 char | 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 char | Returns: the value associated with the key, orifAbsent if no such
mapping exists.the key key, char the default value to return if no mapping exists for ifAbsent)keyRetrieves the value associated with the key, returning the specified default value if no such mapping exists. |
| public char | Returns: the value associated with the keythe key key)Retrieves the value associated with the key, throwing an |
| public int | |
| public default <IV> IV | Returns: result of injecting the injectedValue into the mapvalue to be injected into the map injectedValue, ObjectIntCharToObjectFunction<? super IV, ? 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 MutableIntSet | Returns: a mutable set containing the keys in this mapReturns a set containing all the keys in this map. |
| public LazyIntIterable | |
| public RichIterable | Returns: a view of the keys in this mapReturns a view of the key/value pairs in this map. |
| public IntCharMap | 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 IntCharMap | 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 ImmutableIntCharMap | 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. |
| public String | Returns: a string representation of this IntCharMapRedeclares org. Follows the same general contract as |
| allSatisfyKeyValue | back to summary |
|---|---|
public default boolean allSatisfyKeyValue(IntCharPredicate predicate)
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(int key) Returns whether or not the key is present in the map.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Follows the same general contract as
| |
| flipUniqueValues | back to summary |
|---|---|
| public CharIntMap flipUniqueValues() Return the CharIntMap 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(IntProcedure procedure) Iterates through each key in the map, invoking the procedure for each.
| |
| forEachKeyValue | back to summary |
|---|---|
| public void forEachKeyValue(IntCharProcedure procedure) Iterates through each key/value pair in the map, invoking the procedure for each.
| |
| get | back to summary |
|---|---|
| public char get(int key) Retrieves the value associated with the key. If no mapping exists for the key,
the default value (usually
| |
| getIfAbsent | back to summary |
|---|---|
| public char getIfAbsent(int key, char ifAbsent) Retrieves the value associated with the key, returning the specified default value if no such mapping exists.
| |
| getOrThrow | back to summary |
|---|---|
| public char getOrThrow(int key) Retrieves the value associated with the key, throwing an
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Follows the same general contract as
| |
| injectIntoKeyValue | back to summary |
|---|---|
| public default <IV> IV injectIntoKeyValue(IV injectedValue, ObjectIntCharToObjectFunction<? super IV, ? extends IV> function) Implements the injectInto pattern with each key/value pair of the map.
| |
| keySet | back to summary |
|---|---|
| public MutableIntSet 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 LazyIntIterable 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 IntCharMap reject(IntCharPredicate predicate) Return a copy of this map containing only the key/value pairs that do not match the predicate.
| |
| select | back to summary |
|---|---|
| public IntCharMap select(IntCharPredicate predicate) Return a copy of this map containing only the key/value pairs that match the predicate.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableIntCharMap toImmutable() Returns a copy of this map that is immutable (if this map is mutable) or itself if it is already immutable.
| |
| toString | back to summary |
|---|---|
| public String toString() Redeclares org. Follows the same general contract as | |