java.io.Serializable, BooleanIterable, BooleanValuesMap, MutableBooleanValuesMap, MutableShortBooleanMap, ShortBooleanMap, PrimitiveIterablepublic final class SynchronizedShortBooleanMap extends java.lang.Object implements MutableShortBooleanMap, java.io.Serializable
MutableShortBooleanMap. It is imperative that the user manually synchronize on the collection when iterating over it using the
MutableBooleanIterator as per Collections.synchronizedCollection(Collection).
This file was automatically generated from template file synchronizedPrimitivePrimitiveMap.stg.
MutableShortBooleanMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor | Description |
|---|---|
SynchronizedShortBooleanMap(MutableShortBooleanMap map) |
|
SynchronizedShortBooleanMap(MutableShortBooleanMap map,
java.lang.Object newLock) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
Returns true if all of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(BooleanPredicate predicate) |
Returns true if any of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(java.lang.Appendable appendable) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String separator) |
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Prints a string representation of this collection onto the given
Appendable. |
LazyBooleanIterable |
asLazy() |
Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.
|
MutableShortBooleanMap |
asSynchronized() |
|
MutableShortBooleanMap |
asUnmodifiable() |
|
MutableBooleanIterator |
booleanIterator() |
This must be manually synchronized by the developer.
|
void |
clear() |
|
<V> MutableBag<V> |
collect(BooleanToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
contains(boolean value) |
Returns true if the value is contained in the BooleanIterable, and false if it is not.
|
boolean |
containsAll(boolean... source) |
Returns true if the all of the values specified in the source array are contained
in the BooleanIterable, and false if they are not.
|
boolean |
containsAll(BooleanIterable source) |
Returns true if the all of the values specified in the source BooleanIterable are contained
in the BooleanIterable, and false if they are not.
|
boolean |
containsKey(short key) |
|
boolean |
containsValue(boolean value) |
|
int |
count(BooleanPredicate predicate) |
Returns a count of the number of elements in the BooleanIterable that return true for the
specified predicate.
|
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
|
void |
each(BooleanProcedure procedure) |
A synonym for forEach.
|
boolean |
equals(java.lang.Object otherMap) |
Follows the same general contract as
Map.equals(Object). |
void |
forEach(BooleanProcedure procedure) |
Applies the BooleanProcedure to each element in the BooleanIterable.
|
void |
forEachKey(ShortProcedure procedure) |
|
void |
forEachKeyValue(ShortBooleanProcedure procedure) |
|
void |
forEachValue(BooleanProcedure procedure) |
|
boolean |
get(short key) |
|
boolean |
getIfAbsent(short key,
boolean ifAbsent) |
|
boolean |
getIfAbsentPut(short key,
boolean value) |
|
boolean |
getIfAbsentPut(short key,
BooleanFunction0 function) |
|
<P> boolean |
getIfAbsentPutWith(short key,
BooleanFunction<? super P> function,
P parameter) |
|
boolean |
getIfAbsentPutWithKey(short key,
ShortToBooleanFunction function) |
|
boolean |
getOrThrow(short key) |
|
int |
hashCode() |
Follows the same general contract as
Map.hashCode(). |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
MutableShortSet |
keySet() |
|
LazyShortIterable |
keysView() |
|
RichIterable<ShortBooleanPair> |
keyValuesView() |
|
java.lang.String |
makeString() |
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
java.lang.String |
makeString(java.lang.String separator) |
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end) |
Returns a string representation of this collection with the elements separated by the specified
separator and enclosed between the start and end strings.
|
boolean |
noneSatisfy(BooleanPredicate predicate) |
Returns true if none of the elements in the BooleanIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
void |
put(short key,
boolean value) |
|
void |
putAll(ShortBooleanMap map) |
|
MutableBooleanBag |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableShortBooleanMap |
reject(ShortBooleanPredicate predicate) |
|
void |
remove(short key) |
|
void |
removeKey(short key) |
|
boolean |
removeKeyIfAbsent(short key,
boolean value) |
|
MutableBooleanBag |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
MutableShortBooleanMap |
select(ShortBooleanPredicate predicate) |
|
int |
size() |
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
Converts the BooleanIterable to a primitive boolean array.
|
MutableBooleanBag |
toBag() |
Converts the BooleanIterable to a new MutableBooleanBag.
|
ImmutableShortBooleanMap |
toImmutable() |
|
MutableBooleanList |
toList() |
Converts the BooleanIterable to a new MutableBooleanList.
|
MutableBooleanSet |
toSet() |
Converts the BooleanIterable to a new MutableBooleanSet.
|
java.lang.String |
toString() |
Follows the same general contract as
AbstractMap.toString() |
boolean |
updateValue(short key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
|
MutableBooleanCollection |
values() |
|
MutableShortBooleanMap |
withKeyValue(short key,
boolean value) |
|
MutableShortBooleanMap |
withoutAllKeys(ShortIterable keys) |
|
MutableShortBooleanMap |
withoutKey(short key) |
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, selecttappublic SynchronizedShortBooleanMap(MutableShortBooleanMap map)
public SynchronizedShortBooleanMap(MutableShortBooleanMap map, java.lang.Object newLock)
public void clear()
clear in interface MutableBooleanValuesMappublic void put(short key,
boolean value)
put in interface MutableShortBooleanMappublic void putAll(ShortBooleanMap map)
putAll in interface MutableShortBooleanMappublic void removeKey(short key)
removeKey in interface MutableShortBooleanMappublic void remove(short key)
remove in interface MutableShortBooleanMappublic boolean removeKeyIfAbsent(short key,
boolean value)
removeKeyIfAbsent in interface MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
boolean value)
getIfAbsentPut in interface MutableShortBooleanMappublic boolean getIfAbsentPut(short key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableShortBooleanMappublic boolean getIfAbsentPutWithKey(short key,
ShortToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableShortBooleanMappublic <P> boolean getIfAbsentPutWith(short key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableShortBooleanMappublic boolean updateValue(short key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableShortBooleanMappublic boolean get(short key)
get in interface ShortBooleanMappublic boolean getIfAbsent(short key,
boolean ifAbsent)
getIfAbsent in interface ShortBooleanMappublic boolean getOrThrow(short key)
getOrThrow in interface ShortBooleanMappublic boolean containsKey(short key)
containsKey in interface ShortBooleanMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic void forEachValue(BooleanProcedure procedure)
forEachValue in interface BooleanValuesMappublic void forEachKey(ShortProcedure procedure)
forEachKey in interface ShortBooleanMappublic void forEachKeyValue(ShortBooleanProcedure procedure)
forEachKeyValue in interface ShortBooleanMappublic LazyShortIterable keysView()
keysView in interface ShortBooleanMappublic RichIterable<ShortBooleanPair> keyValuesView()
keyValuesView in interface ShortBooleanMappublic MutableShortBooleanMap select(ShortBooleanPredicate predicate)
select in interface MutableShortBooleanMapselect in interface ShortBooleanMappublic MutableShortBooleanMap reject(ShortBooleanPredicate predicate)
reject in interface MutableShortBooleanMapreject in interface ShortBooleanMappublic MutableBooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablebooleanIterator in interface MutableBooleanValuesMappublic void forEach(BooleanProcedure procedure)
BooleanIterableforEach in interface BooleanIterablepublic void each(BooleanProcedure procedure)
BooleanIterableeach in interface BooleanIterablepublic int count(BooleanPredicate predicate)
BooleanIterablecount in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
BooleanIterableanySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
BooleanIterableallSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
BooleanIterablenoneSatisfy in interface BooleanIterablepublic MutableBooleanBag select(BooleanPredicate predicate)
BooleanIterableselect in interface BooleanIterableselect in interface BooleanValuesMapselect in interface MutableBooleanValuesMappublic MutableBooleanBag reject(BooleanPredicate predicate)
BooleanIterablereject in interface BooleanIterablereject in interface BooleanValuesMapreject in interface MutableBooleanValuesMappublic <V> MutableBag<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterablecollect in interface BooleanIterablecollect in interface BooleanValuesMapcollect in interface MutableBooleanValuesMappublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterablepublic boolean[] toArray()
BooleanIterabletoArray in interface BooleanIterablepublic boolean contains(boolean value)
BooleanIterablecontains in interface BooleanIterablepublic boolean containsAll(boolean... source)
BooleanIterablecontainsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
BooleanIterablecontainsAll in interface BooleanIterablepublic MutableBooleanList toList()
BooleanIterabletoList in interface BooleanIterablepublic MutableBooleanSet toSet()
BooleanIterabletoSet in interface BooleanIterablepublic MutableBooleanBag toBag()
BooleanIterabletoBag in interface BooleanIterablepublic LazyBooleanIterable asLazy()
BooleanIterableasLazy in interface BooleanIterablepublic MutableShortBooleanMap withKeyValue(short key, boolean value)
withKeyValue in interface MutableShortBooleanMappublic MutableShortBooleanMap withoutKey(short key)
withoutKey in interface MutableShortBooleanMappublic MutableShortBooleanMap withoutAllKeys(ShortIterable keys)
withoutAllKeys in interface MutableShortBooleanMappublic MutableShortBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableShortBooleanMappublic MutableShortBooleanMap asSynchronized()
asSynchronized in interface MutableShortBooleanMappublic ImmutableShortBooleanMap toImmutable()
toImmutable in interface ShortBooleanMappublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableShortSet keySet()
keySet in interface ShortBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMappublic boolean equals(java.lang.Object otherMap)
ShortBooleanMapMap.equals(Object).equals in interface ShortBooleanMapequals in class java.lang.Objectpublic int hashCode()
ShortBooleanMapMap.hashCode().hashCode in interface ShortBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
ShortBooleanMapAbstractMap.toString()toString in interface PrimitiveIterabletoString in interface ShortBooleanMaptoString in class java.lang.ObjectAbstractCollection.toString()public java.lang.String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic java.lang.String makeString(java.lang.String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterableCopyright © 2004–2017. All rights reserved.