Serializable
, BooleanIterable
, MutableBooleanCollection
, BooleanList
, MutableBooleanList
, OrderedBooleanIterable
, ReversibleBooleanIterable
, PrimitiveIterable
@NotThreadSafe public final class UnmodifiableBooleanList extends AbstractUnmodifiableBooleanCollection implements MutableBooleanList
Constructor | Description |
---|---|
UnmodifiableBooleanList(MutableBooleanList list) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addAllAtIndex(int index,
boolean... source) |
|
boolean |
addAllAtIndex(int index,
BooleanIterable source) |
|
void |
addAtIndex(int index,
boolean element) |
|
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() |
|
UnmodifiableBooleanList |
with(boolean element) |
|
UnmodifiableBooleanList |
withAll(BooleanIterable elements) |
|
UnmodifiableBooleanList |
without(boolean element) |
|
UnmodifiableBooleanList |
withoutAll(BooleanIterable elements) |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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, asLazy, 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 UnmodifiableBooleanList(MutableBooleanList list)
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 UnmodifiableBooleanList with(boolean element)
with
in interface MutableBooleanCollection
with
in interface MutableBooleanList
with
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanList without(boolean element)
without
in interface MutableBooleanCollection
without
in interface MutableBooleanList
without
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanList withAll(BooleanIterable elements)
withAll
in interface MutableBooleanCollection
withAll
in interface MutableBooleanList
withAll
in class AbstractUnmodifiableBooleanCollection
public UnmodifiableBooleanList withoutAll(BooleanIterable elements)
withoutAll
in interface MutableBooleanCollection
withoutAll
in interface MutableBooleanList
withoutAll
in class AbstractUnmodifiableBooleanCollection
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 AbstractUnmodifiableBooleanCollection
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 AbstractUnmodifiableBooleanCollection
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 AbstractUnmodifiableBooleanCollection
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 MutableBooleanList asUnmodifiable()
asUnmodifiable
in interface MutableBooleanCollection
asUnmodifiable
in interface MutableBooleanList
asUnmodifiable
in class AbstractUnmodifiableBooleanCollection
public MutableBooleanList asSynchronized()
asSynchronized
in interface MutableBooleanCollection
asSynchronized
in interface MutableBooleanList
asSynchronized
in class AbstractUnmodifiableBooleanCollection
public ImmutableBooleanList toImmutable()
MutableBooleanList
toImmutable
in interface BooleanList
toImmutable
in interface MutableBooleanCollection
toImmutable
in interface MutableBooleanList
toImmutable
in class AbstractUnmodifiableBooleanCollection
public MutableBooleanList reverseThis()
reverseThis
in interface MutableBooleanList
public MutableBooleanList toReversed()
toReversed
in interface BooleanList
toReversed
in interface MutableBooleanList
toReversed
in interface ReversibleBooleanIterable
public void forEachWithIndex(BooleanIntProcedure procedure)
forEachWithIndex
in interface OrderedBooleanIterable
public LazyBooleanIterable asReversed()
asReversed
in interface ReversibleBooleanIterable
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.