Serializable
, BooleanIterable
, MutableBooleanCollection
, BooleanList
, MutableBooleanList
, OrderedBooleanIterable
, ReversibleBooleanIterable
, PrimitiveIterable
@ThreadSafe public final class SynchronizedBooleanList extends AbstractSynchronizedBooleanCollection implements MutableBooleanList
MutableBooleanList
. It is imperative that the user manually synchronize on the collection when iterating over it using the
BooleanIterator
, as per Collections.synchronizedCollection(Collection)
.
This file was automatically generated from template file synchronizedPrimitiveList.stg.
MutableBooleanList.asSynchronized()
,
MutableList.asSynchronized()
,
Serialized FormConstructor | Description |
---|---|
SynchronizedBooleanList(MutableBooleanList list) |
|
SynchronizedBooleanList(MutableBooleanList list,
Object newLock) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
boolean... source) |
|
boolean |
addAllAtIndex(int index,
BooleanIterable source) |
|
void |
addAtIndex(int index,
boolean element) |
|
LazyBooleanIterable |
asLazy() |
Returns a LazyBooleanIterable adapter wrapping the source BooleanIterable.
|
LazyBooleanIterable |
asReversed() |
|
MutableBooleanList |
asSynchronized() |
|
MutableBooleanList |
asUnmodifiable() |
|
<V> MutableList<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.
|
MutableBooleanList |
distinct() |
|
boolean |
equals(Object otherList) |
Follows the same general contract as
List.equals(Object) . |
void |
forEachWithIndex(BooleanIntProcedure procedure) |
|
boolean |
get(int index) |
|
boolean |
getFirst() |
|
boolean |
getLast() |
|
int |
hashCode() |
Follows the same general contract as
List.hashCode() . |
int |
indexOf(boolean value) |
|
<T> T |
injectIntoWithIndex(T injectedValue,
ObjectBooleanIntToObjectFunction<? super T,? extends T> function) |
|
int |
lastIndexOf(boolean value) |
|
MutableBooleanList |
reject(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return false for the specified predicate.
|
boolean |
removeAtIndex(int index) |
|
MutableBooleanList |
reverseThis() |
|
MutableBooleanList |
select(BooleanPredicate predicate) |
Returns a new BooleanIterable with all of the elements in the BooleanIterable that
return true for the specified predicate.
|
boolean |
set(int index,
boolean element) |
|
MutableBooleanList |
subList(int fromIndex,
int toIndex) |
|
ImmutableBooleanList |
toImmutable() |
Returns an immutable copy of this list.
|
MutableBooleanList |
toReversed() |
|
SynchronizedBooleanList |
with(boolean element) |
|
SynchronizedBooleanList |
withAll(BooleanIterable elements) |
|
SynchronizedBooleanList |
without(boolean element) |
|
SynchronizedBooleanList |
withoutAll(BooleanIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, booleanIterator, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toBag, toList, toSet, toString
allSatisfy, anySatisfy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reject, select, toArray, toBag, toList, toSet
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, retainAll, retainAll
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public SynchronizedBooleanList(MutableBooleanList list)
public SynchronizedBooleanList(MutableBooleanList list, Object newLock)
public boolean get(int index)
get
in interface BooleanList
public boolean getFirst()
getFirst
in interface OrderedBooleanIterable
public boolean getLast()
getLast
in interface ReversibleBooleanIterable
public int indexOf(boolean value)
indexOf
in interface OrderedBooleanIterable
public int lastIndexOf(boolean value)
lastIndexOf
in interface BooleanList
public void addAtIndex(int index, boolean element)
addAtIndex
in interface MutableBooleanList
public boolean addAllAtIndex(int index, boolean... source)
addAllAtIndex
in interface MutableBooleanList
public boolean addAllAtIndex(int index, BooleanIterable source)
addAllAtIndex
in interface MutableBooleanList
public boolean removeAtIndex(int index)
removeAtIndex
in interface MutableBooleanList
public boolean set(int index, boolean element)
set
in interface MutableBooleanList
public SynchronizedBooleanList with(boolean element)
with
in interface MutableBooleanCollection
with
in interface MutableBooleanList
with
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanList without(boolean element)
without
in interface MutableBooleanCollection
without
in interface MutableBooleanList
without
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanList withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
withAll
in interface MutableBooleanList
withAll
in class AbstractSynchronizedBooleanCollection
public SynchronizedBooleanList withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
withoutAll
in interface MutableBooleanList
withoutAll
in class AbstractSynchronizedBooleanCollection
public MutableBooleanList select(BooleanPredicate predicate)
BooleanIterable
select
in interface BooleanIterable
select
in interface BooleanList
select
in interface MutableBooleanCollection
select
in interface MutableBooleanList
select
in interface OrderedBooleanIterable
select
in interface ReversibleBooleanIterable
select
in class AbstractSynchronizedBooleanCollection
public MutableBooleanList reject(BooleanPredicate predicate)
BooleanIterable
reject
in interface BooleanIterable
reject
in interface BooleanList
reject
in interface MutableBooleanCollection
reject
in interface MutableBooleanList
reject
in interface OrderedBooleanIterable
reject
in interface ReversibleBooleanIterable
reject
in class AbstractSynchronizedBooleanCollection
public <V> MutableList<V> collect(BooleanToObjectFunction<? extends V> function)
BooleanIterable
collect
in interface BooleanIterable
collect
in interface BooleanList
collect
in interface MutableBooleanCollection
collect
in interface MutableBooleanList
collect
in interface OrderedBooleanIterable
collect
in interface ReversibleBooleanIterable
collect
in class AbstractSynchronizedBooleanCollection
public boolean equals(Object otherList)
BooleanList
List.equals(Object)
.equals
in interface BooleanList
equals
in class Object
public int hashCode()
BooleanList
List.hashCode()
.hashCode
in interface BooleanList
hashCode
in class Object
public LazyBooleanIterable asLazy()
BooleanIterable
asLazy
in interface BooleanIterable
asLazy
in class AbstractSynchronizedBooleanCollection
public MutableBooleanList asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
asUnmodifiable
in interface MutableBooleanList
asUnmodifiable
in class AbstractSynchronizedBooleanCollection
public MutableBooleanList asSynchronized()
asSynchronized
in interface MutableBooleanCollection
asSynchronized
in interface MutableBooleanList
asSynchronized
in class AbstractSynchronizedBooleanCollection
public ImmutableBooleanList toImmutable()
MutableBooleanList
toImmutable
in interface BooleanList
toImmutable
in interface MutableBooleanCollection
toImmutable
in interface MutableBooleanList
toImmutable
in class AbstractSynchronizedBooleanCollection
public MutableBooleanList reverseThis()
reverseThis
in interface MutableBooleanList
public MutableBooleanList toReversed()
toReversed
in interface BooleanList
toReversed
in interface MutableBooleanList
toReversed
in interface ReversibleBooleanIterable
public LazyBooleanIterable asReversed()
asReversed
in interface ReversibleBooleanIterable
public void forEachWithIndex(BooleanIntProcedure procedure)
forEachWithIndex
in interface OrderedBooleanIterable
public <T> T injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T,? extends T> function)
injectIntoWithIndex
in interface OrderedBooleanIterable
injectIntoWithIndex
in interface ReversibleBooleanIterable
public MutableBooleanList distinct()
distinct
in interface BooleanList
distinct
in interface MutableBooleanList
distinct
in interface ReversibleBooleanIterable
public MutableBooleanList subList(int fromIndex, int toIndex)
subList
in interface BooleanList
subList
in interface MutableBooleanList
Copyright © 2004–2017. All rights reserved.