public interface ByteBooleanMap extends BooleanValuesMap
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(byte key)
Returns whether or not the key is present in the map.
|
boolean |
equals(Object o)
Follows the same general contract as
Map.equals(Object). |
void |
forEachKey(ByteProcedure procedure)
Iterates through each key in the map, invoking the procedure for each.
|
void |
forEachKeyValue(ByteBooleanProcedure procedure)
Iterates through each key/value pair in the map, invoking the procedure for each.
|
boolean |
get(byte key)
Retrieves the value associated with the key.
|
boolean |
getIfAbsent(byte key,
boolean ifAbsent)
Retrieves the value associated with the key, returning the specified default
value if no such mapping exists.
|
boolean |
getOrThrow(byte key)
Retrieves the value associated with the key, throwing an
IllegalStateException
if no such mapping exists. |
int |
hashCode()
Follows the same general contract as
Map.hashCode(). |
MutableByteSet |
keySet()
Returns a set containing all the keys in this map.
|
LazyByteIterable |
keysView()
Returns a view of the keys in this map.
|
RichIterable<ByteBooleanPair> |
keyValuesView()
Returns a view of the key/value pairs in this map.
|
ByteBooleanMap |
reject(ByteBooleanPredicate predicate)
Return a copy of this map containing only the key/value pairs that do not match the
predicate.
|
ByteBooleanMap |
select(ByteBooleanPredicate predicate)
Return a copy of this map containing only the key/value pairs that match the predicate.
|
ImmutableByteBooleanMap |
toImmutable()
Returns a copy of this map that is immutable (if this map is mutable) or
itself if it is already immutable.
|
String |
toString()
Follows the same general contract as
AbstractMap.toString() |
collect, containsValue, forEachValue, reject, select, tap, valuesallSatisfy, anySatisfy, asLazy, booleanIterator, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizeboolean get(byte key)
0) is returned.key - the keyboolean getIfAbsent(byte key,
boolean ifAbsent)
key - the keyifAbsent - the default value to return if no mapping exists for keyifAbsent if no such
mapping exists.boolean getOrThrow(byte key)
IllegalStateException
if no such mapping exists.key - the keyIllegalStateException - if no mapping exists for the keyboolean containsKey(byte key)
key - the keyvoid forEachKey(ByteProcedure procedure)
procedure - the procedure to invoke for each keyvoid forEachKeyValue(ByteBooleanProcedure procedure)
procedure - the procedure to invoke for each key/value pairLazyByteIterable keysView()
RichIterable<ByteBooleanPair> keyValuesView()
ByteBooleanMap select(ByteBooleanPredicate predicate)
predicate - the predicate to determine which key/value pairs in this map should be
included in the returned mapByteBooleanMap reject(ByteBooleanPredicate predicate)
predicate - the predicate to determine which key/value pairs in this map should be
excluded from the returned mapboolean equals(Object o)
Map.equals(Object).int hashCode()
Map.hashCode().String toString()
AbstractMap.toString()toString in interface PrimitiveIterabletoString in class ObjectAbstractCollection.toString()ImmutableByteBooleanMap toImmutable()
MutableByteSet keySet()
Copyright © 2004–2021. All rights reserved.