| 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 | Returns: if this collection contains the valuethe value to test value)Returns whether or not this map contains the value. |
| public void | forEachKey(Procedure<? super K>
the procedure to invoke for each key procedure)Iterates through each key in the map, invoking the procedure for each. |
| public void | forEachKeyValue(ObjectBooleanProcedure<? super K>
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 void | forEachValue(BooleanProcedure
the procedure to invoke for each value in this map. procedure)Iterates through each value in this map. |
| public boolean | |
| public boolean | Returns: the value associated with the key, orifAbsent if no such
mapping exists.the key key, boolean 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 boolean | Returns: the value associated with the keythe key key)Retrieves the value associated with the key, throwing an |
| public default <IV> IV | Returns: result of injecting the injectedValue into the mapvalue to be injected into the map injectedValue, ObjectObjectBooleanToObjectFunction<? super IV, ? super K, ? 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 Set | Returns: a mutable set containing the keys in this mapReturns a set containing all the keys in this map. |
| public LazyIterable | |
| public RichIterable | Returns: a view of the keys in this mapReturns a view of the key/value pairs in this map. |
| public ObjectBooleanMap | 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 ObjectBooleanMap | 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 default ObjectBooleanMap | |
| public ImmutableObjectBooleanMap | 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 ObjectBooleanMapRedeclares org. Follows the same general contract as |
| public MutableBooleanCollection | Returns: the values as a collection backed by this mapReturns the values in this map as a separate collection. |
| allSatisfyKeyValue | back to summary |
|---|---|
public default boolean allSatisfyKeyValue(ObjectBooleanPredicate<K> predicate)
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Returns whether or not the key is present in the map.
| |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(boolean value) Returns whether or not this map contains the value.
| |
| forEachKey | back to summary |
|---|---|
| public void forEachKey(Procedure<? super K> procedure) Iterates through each key in the map, invoking the procedure for each.
| |
| forEachKeyValue | back to summary |
|---|---|
| public void forEachKeyValue(ObjectBooleanProcedure<? super K> procedure) Iterates through each key/value pair in the map, invoking the procedure for each.
| |
| forEachValue | back to summary |
|---|---|
| public void forEachValue(BooleanProcedure procedure) Iterates through each value in this map.
| |
| get | back to summary |
|---|---|
| public boolean get(Object key) Retrieves the value associated with the key. If no mapping exists for the key,
the default value (usually
| |
| getIfAbsent | back to summary |
|---|---|
| public boolean getIfAbsent(Object key, boolean ifAbsent) Retrieves the value associated with the key, returning the specified default value if no such mapping exists.
| |
| getOrThrow | back to summary |
|---|---|
| public boolean getOrThrow(Object key) Retrieves the value associated with the key, throwing an
| |
| injectIntoKeyValue | back to summary |
|---|---|
| public default <IV> IV injectIntoKeyValue(IV injectedValue, ObjectObjectBooleanToObjectFunction<? super IV, ? super K, ? extends IV> function) Implements the injectInto pattern with each key/value pair of the map.
| |
| keySet | back to summary |
|---|---|
| public Set 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 LazyIterable 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 ObjectBooleanMap Return a copy of this map containing only the key/value pairs that do not match the predicate.
| |
| select | back to summary |
|---|---|
| public ObjectBooleanMap Return a copy of this map containing only the key/value pairs that match the predicate.
| |
| tap | back to summary |
|---|---|
| public default ObjectBooleanMap Overrides default org.
| |
| toImmutable | back to summary |
|---|---|
| public ImmutableObjectBooleanMap 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 | |
| values | back to summary |
|---|---|
| public MutableBooleanCollection values() Returns the values in this map as a separate collection. The returned collection is backed by the map, so any changes made to the returned collection will affect the state of this map.
| |