public class SynchronizedBooleanList extends AbstractSynchronizedBooleanCollection implements MutableBooleanList
MutableBooleanList. It is imperative that the user manually synchronize on the on the
collection when iterating over it using an iterator or stream.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableBooleanList.asSynchronized(),
MutableList.asSynchronized(),
Serialized Form| Constructor and Description |
|---|
SynchronizedBooleanList(MutableBooleanList list) |
SynchronizedBooleanList(MutableBooleanList list,
Object newLock) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAllAtIndex(int index,
boolean... source) |
boolean |
addAllAtIndex(int index,
BooleanIterable source) |
void |
addAtIndex(int index,
boolean element) |
LazyBooleanIterable |
asLazy() |
LazyBooleanIterable |
asReversed() |
MutableBooleanList |
asSynchronized() |
MutableBooleanList |
asUnmodifiable() |
<V> MutableList<V> |
collect(BooleanToObjectFunction<? extends V> function) |
<V> MutableList<V> |
collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
Returns a new MutableList using results obtained by applying the specified function to each element
and its corresponding index.
|
<V,R extends Collection<V>> |
collectWithIndex(BooleanIntToObjectFunction<? extends V> function,
R target)
Adds elements to the target Collection using results obtained by applying the specified function to each element
and its corresponding index.
|
MutableBooleanList |
distinct() |
boolean |
equals(Object otherList) |
void |
forEachInBoth(BooleanList other,
BooleanBooleanProcedure procedure) |
void |
forEachWithIndex(BooleanIntProcedure procedure) |
boolean |
get(int index) |
boolean |
getFirst() |
boolean |
getLast() |
int |
hashCode() |
int |
indexOf(boolean value) |
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function) |
int |
lastIndexOf(boolean value) |
MutableBooleanList |
newEmpty() |
MutableBooleanList |
reject(BooleanPredicate predicate) |
MutableBooleanList |
rejectWithIndex(BooleanIntPredicate predicate)
Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableBooleanCollection> |
rejectWithIndex(BooleanIntPredicate predicate,
R target)
Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.
|
boolean |
removeAtIndex(int index) |
MutableBooleanList |
reverseThis() |
MutableBooleanList |
select(BooleanPredicate predicate) |
MutableBooleanList |
selectWithIndex(BooleanIntPredicate predicate)
Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.
|
<R extends MutableBooleanCollection> |
selectWithIndex(BooleanIntPredicate predicate,
R target)
Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.
|
boolean |
set(int index,
boolean element) |
MutableBooleanList |
subList(int fromIndex,
int toIndex) |
ImmutableBooleanList |
toImmutable() |
MutableBooleanList |
toReversed() |
SynchronizedBooleanList |
with(boolean element) |
SynchronizedBooleanList |
withAll(BooleanIterable elements) |
SynchronizedBooleanList |
without(boolean element) |
SynchronizedBooleanList |
withoutAll(BooleanIterable elements) |
<T> MutableList<BooleanObjectPair<T>> |
zip(Iterable<T> iterable) |
MutableList<BooleanBooleanPair> |
zipBoolean(BooleanIterable iterable) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toArray, toBag, toList, toSet, toStringswap, tapadd, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllallSatisfy, anySatisfy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toArray, toBag, toList, toSetappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic SynchronizedBooleanList(MutableBooleanList list)
public SynchronizedBooleanList(MutableBooleanList list, Object newLock)
public boolean get(int index)
get in interface BooleanListpublic boolean getFirst()
getFirst in interface OrderedBooleanIterablepublic boolean getLast()
getLast in interface ReversibleBooleanIterablepublic int indexOf(boolean value)
indexOf in interface OrderedBooleanIterablepublic int lastIndexOf(boolean value)
lastIndexOf in interface BooleanListpublic void addAtIndex(int index,
boolean element)
addAtIndex in interface MutableBooleanListpublic boolean addAllAtIndex(int index,
boolean... source)
addAllAtIndex in interface MutableBooleanListpublic boolean addAllAtIndex(int index,
BooleanIterable source)
addAllAtIndex in interface MutableBooleanListpublic boolean removeAtIndex(int index)
removeAtIndex in interface MutableBooleanListpublic boolean set(int index,
boolean element)
set in interface MutableBooleanListpublic SynchronizedBooleanList with(boolean element)
with in interface MutableBooleanCollectionwith in interface MutableBooleanListwith in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanList without(boolean element)
without in interface MutableBooleanCollectionwithout in interface MutableBooleanListwithout in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanList withAll(BooleanIterable elements)
withAll in interface MutableBooleanCollectionwithAll in interface MutableBooleanListwithAll in class AbstractSynchronizedBooleanCollectionpublic SynchronizedBooleanList withoutAll(BooleanIterable elements)
withoutAll in interface MutableBooleanCollectionwithoutAll in interface MutableBooleanListwithoutAll in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanList select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface MutableBooleanCollectionselect in interface BooleanListselect in interface MutableBooleanListselect in interface OrderedBooleanIterableselect in interface ReversibleBooleanIterableselect in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanList reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface MutableBooleanCollectionreject in interface BooleanListreject in interface MutableBooleanListreject in interface OrderedBooleanIterablereject in interface ReversibleBooleanIterablereject in class AbstractSynchronizedBooleanCollectionpublic <V> MutableList<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface MutableBooleanCollectioncollect in interface BooleanListcollect in interface MutableBooleanListcollect in interface OrderedBooleanIterablecollect in interface ReversibleBooleanIterablecollect in class AbstractSynchronizedBooleanCollectionpublic boolean equals(Object otherList)
equals in interface BooleanListequals in class Objectpublic int hashCode()
hashCode in interface BooleanListhashCode in class Objectpublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterableasLazy in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanList asUnmodifiable()
asUnmodifiable in interface MutableBooleanCollectionasUnmodifiable in interface MutableBooleanListasUnmodifiable in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanList asSynchronized()
asSynchronized in interface MutableBooleanCollectionasSynchronized in interface MutableBooleanListasSynchronized in class AbstractSynchronizedBooleanCollectionpublic ImmutableBooleanList toImmutable()
toImmutable in interface MutableBooleanCollectiontoImmutable in interface BooleanListtoImmutable in interface MutableBooleanListtoImmutable in class AbstractSynchronizedBooleanCollectionpublic MutableBooleanList newEmpty()
newEmpty in interface MutableBooleanCollectionnewEmpty in interface MutableBooleanListpublic MutableBooleanList reverseThis()
reverseThis in interface MutableBooleanListpublic MutableBooleanList toReversed()
toReversed in interface BooleanListtoReversed in interface MutableBooleanListtoReversed in interface ReversibleBooleanIterablepublic LazyBooleanIterable asReversed()
asReversed in interface ReversibleBooleanIterablepublic void forEachInBoth(BooleanList other, BooleanBooleanProcedure procedure)
forEachInBoth in interface BooleanListpublic void forEachWithIndex(BooleanIntProcedure procedure)
forEachWithIndex in interface OrderedBooleanIterablepublic <T> T injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex in interface OrderedBooleanIterableinjectIntoWithIndex in interface ReversibleBooleanIterablepublic MutableBooleanList distinct()
distinct in interface BooleanListdistinct in interface MutableBooleanListdistinct in interface ReversibleBooleanIterablepublic MutableBooleanList subList(int fromIndex, int toIndex)
subList in interface BooleanListsubList in interface MutableBooleanListpublic MutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
zipBoolean in interface BooleanListzipBoolean in interface MutableBooleanListpublic <T> MutableList<BooleanObjectPair<T>> zip(Iterable<T> iterable)
zip in interface BooleanListzip in interface MutableBooleanListpublic MutableBooleanList selectWithIndex(BooleanIntPredicate predicate)
selectWithIndex in interface BooleanListselectWithIndex in interface MutableBooleanListselectWithIndex in interface OrderedBooleanIterableselectWithIndex in interface ReversibleBooleanIterablepublic <R extends MutableBooleanCollection> R selectWithIndex(BooleanIntPredicate predicate, R target)
selectWithIndex in interface OrderedBooleanIterablepublic MutableBooleanList rejectWithIndex(BooleanIntPredicate predicate)
rejectWithIndex in interface BooleanListrejectWithIndex in interface MutableBooleanListrejectWithIndex in interface OrderedBooleanIterablerejectWithIndex in interface ReversibleBooleanIterablepublic <R extends MutableBooleanCollection> R rejectWithIndex(BooleanIntPredicate predicate, R target)
rejectWithIndex in interface OrderedBooleanIterablepublic <V> MutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex in interface BooleanListcollectWithIndex in interface MutableBooleanListcollectWithIndex in interface OrderedBooleanIterablecollectWithIndex in interface ReversibleBooleanIterablepublic <V,R extends Collection<V>> R collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)
collectWithIndex in interface OrderedBooleanIterableCopyright © 2004–2022. All rights reserved.