java.io.Serializable, BooleanIterable, BooleanValuesMap, IntBooleanMap, MutableBooleanValuesMap, MutableIntBooleanMap, PrimitiveIterablepublic class SynchronizedIntBooleanMap extends java.lang.Object implements MutableIntBooleanMap, java.io.Serializable
MutableIntBooleanMap. 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.
MutableIntBooleanMap.asSynchronized(),
MutableMap.asSynchronized(),
Serialized Form| Constructor | Description |
|---|---|
SynchronizedIntBooleanMap(MutableIntBooleanMap map) |
|
SynchronizedIntBooleanMap(MutableIntBooleanMap 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.
|
MutableIntBooleanMap |
asSynchronized() |
|
MutableIntBooleanMap |
asUnmodifiable() |
|
MutableBooleanIterator |
booleanIterator() |
This must be manually synchronized by the developer.
|
RichIterable<BooleanIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
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(int 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(IntProcedure procedure) |
|
void |
forEachKeyValue(IntBooleanProcedure procedure) |
|
void |
forEachValue(BooleanProcedure procedure) |
|
boolean |
get(int key) |
|
boolean |
getIfAbsent(int key,
boolean ifAbsent) |
|
boolean |
getIfAbsentPut(int key,
boolean value) |
|
boolean |
getIfAbsentPut(int key,
BooleanFunction0 function) |
|
<P> boolean |
getIfAbsentPutWith(int key,
BooleanFunction<? super P> function,
P parameter) |
|
boolean |
getIfAbsentPutWithKey(int key,
IntToBooleanFunction function) |
|
boolean |
getOrThrow(int 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.
|
MutableIntSet |
keySet() |
|
LazyIntIterable |
keysView() |
|
RichIterable<IntBooleanPair> |
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(int key,
boolean value) |
|
void |
putAll(IntBooleanMap map) |
|
void |
putPair(IntBooleanPair keyValuePair) |
This method allows MutableIntBooleanMap the ability to add an element in the form of IntBooleanPair.
|
MutableBooleanBag |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
MutableIntBooleanMap |
reject(IntBooleanPredicate predicate) |
|
void |
remove(int key) |
|
void |
removeKey(int key) |
|
boolean |
removeKeyIfAbsent(int 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.
|
MutableIntBooleanMap |
select(IntBooleanPredicate 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.
|
ImmutableIntBooleanMap |
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(int key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function) |
|
MutableBooleanCollection |
values() |
|
MutableIntBooleanMap |
withKeyValue(int key,
boolean value) |
|
MutableIntBooleanMap |
withoutAllKeys(IntIterable keys) |
|
MutableIntBooleanMap |
withoutKey(int key) |
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, reject, selecttappublic SynchronizedIntBooleanMap(MutableIntBooleanMap map)
public SynchronizedIntBooleanMap(MutableIntBooleanMap map, java.lang.Object newLock)
public void clear()
clear in interface MutableBooleanValuesMappublic void put(int key,
boolean value)
put in interface MutableIntBooleanMappublic void putPair(IntBooleanPair keyValuePair)
MutableIntBooleanMapputPair in interface MutableIntBooleanMapMutableIntBooleanMap.put(int, boolean)public void putAll(IntBooleanMap map)
putAll in interface MutableIntBooleanMappublic void removeKey(int key)
removeKey in interface MutableIntBooleanMappublic void remove(int key)
remove in interface MutableIntBooleanMappublic boolean removeKeyIfAbsent(int key,
boolean value)
removeKeyIfAbsent in interface MutableIntBooleanMappublic boolean getIfAbsentPut(int key,
boolean value)
getIfAbsentPut in interface MutableIntBooleanMappublic boolean getIfAbsentPut(int key,
BooleanFunction0 function)
getIfAbsentPut in interface MutableIntBooleanMappublic boolean getIfAbsentPutWithKey(int key,
IntToBooleanFunction function)
getIfAbsentPutWithKey in interface MutableIntBooleanMappublic <P> boolean getIfAbsentPutWith(int key,
BooleanFunction<? super P> function,
P parameter)
getIfAbsentPutWith in interface MutableIntBooleanMappublic boolean updateValue(int key,
boolean initialValueIfAbsent,
BooleanToBooleanFunction function)
updateValue in interface MutableIntBooleanMappublic boolean get(int key)
get in interface IntBooleanMappublic boolean getIfAbsent(int key,
boolean ifAbsent)
getIfAbsent in interface IntBooleanMappublic boolean getOrThrow(int key)
getOrThrow in interface IntBooleanMappublic boolean containsKey(int key)
containsKey in interface IntBooleanMappublic boolean containsValue(boolean value)
containsValue in interface BooleanValuesMappublic void forEachValue(BooleanProcedure procedure)
forEachValue in interface BooleanValuesMappublic void forEachKey(IntProcedure procedure)
forEachKey in interface IntBooleanMappublic void forEachKeyValue(IntBooleanProcedure procedure)
forEachKeyValue in interface IntBooleanMappublic LazyIntIterable keysView()
keysView in interface IntBooleanMappublic RichIterable<IntBooleanPair> keyValuesView()
keyValuesView in interface IntBooleanMappublic MutableIntBooleanMap select(IntBooleanPredicate predicate)
select in interface IntBooleanMapselect in interface MutableIntBooleanMappublic MutableIntBooleanMap reject(IntBooleanPredicate predicate)
reject in interface IntBooleanMapreject in interface MutableIntBooleanMappublic 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 MutableIntBooleanMap withKeyValue(int key, boolean value)
withKeyValue in interface MutableIntBooleanMappublic MutableIntBooleanMap withoutKey(int key)
withoutKey in interface MutableIntBooleanMappublic MutableIntBooleanMap withoutAllKeys(IntIterable keys)
withoutAllKeys in interface MutableIntBooleanMappublic MutableIntBooleanMap asUnmodifiable()
asUnmodifiable in interface MutableIntBooleanMappublic MutableIntBooleanMap asSynchronized()
asSynchronized in interface MutableIntBooleanMappublic ImmutableIntBooleanMap toImmutable()
toImmutable in interface IntBooleanMappublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic MutableIntSet keySet()
keySet in interface IntBooleanMappublic MutableBooleanCollection values()
values in interface BooleanValuesMappublic boolean equals(java.lang.Object otherMap)
IntBooleanMapMap.equals(Object).equals in interface IntBooleanMapequals in class java.lang.Objectpublic int hashCode()
IntBooleanMapMap.hashCode().hashCode in interface IntBooleanMaphashCode in class java.lang.Objectpublic java.lang.String toString()
IntBooleanMapAbstractMap.toString()toString in interface IntBooleanMaptoString in interface PrimitiveIterabletoString 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 BooleanIterablepublic RichIterable<BooleanIterable> chunk(int size)
BooleanIterablechunk in interface BooleanIterablesize - the number of elements per chunkRichIterable containing BooleanIterables of size size, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2018. All rights reserved.