java.io.Serializable
, BooleanIterable
, MutableBooleanCollection
, BooleanList
, MutableBooleanList
, OrderedBooleanIterable
, ReversibleBooleanIterable
, PrimitiveIterable
public 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.
|
<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 java.util.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(java.lang.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 |
newEmpty() |
Creates a new empty mutable version of the same List type.
|
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) |
|
<T> MutableList<BooleanObjectPair<T>> |
zip(java.lang.Iterable<T> iterable) |
Returns a
MutableList formed from this MutableBooleanList and a ListIterable by
combining corresponding elements in pairs. |
MutableList<BooleanBooleanPair> |
zipBoolean(BooleanIterable iterable) |
Returns a
MutableList formed from this MutableBooleanList and another BooleanList by
combining corresponding elements in pairs. |
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, booleanIterator, chunk, clear, contains, containsAll, containsAll, count, detectIfNone, each, forEach, injectInto, isEmpty, makeString, makeString, makeString, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, toArray, toBag, toList, toSet, toString
allSatisfy, anySatisfy, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, noneSatisfy, reduce, reduceIfEmpty, reject, select, toArray, toBag, toList, toSet
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
tap
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(java.lang.Object otherList)
BooleanList
List.equals(Object)
.equals
in interface BooleanList
equals
in class java.lang.Object
public int hashCode()
BooleanList
List.hashCode()
.hashCode
in interface BooleanList
hashCode
in class java.lang.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 newEmpty()
MutableBooleanList
newEmpty
in interface MutableBooleanCollection
newEmpty
in interface MutableBooleanList
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
List.subList(int fromIndex, int toIndex)
public MutableList<BooleanBooleanPair> zipBoolean(BooleanIterable iterable)
MutableBooleanList
MutableList
formed from this MutableBooleanList
and another BooleanList
by
combining corresponding elements in pairs. If one of the two BooleanList
s is longer than the other, its
remaining elements are ignored.zipBoolean
in interface BooleanList
zipBoolean
in interface MutableBooleanList
public <T> MutableList<BooleanObjectPair<T>> zip(java.lang.Iterable<T> iterable)
MutableBooleanList
MutableList
formed from this MutableBooleanList
and a ListIterable
by
combining corresponding elements in pairs. If one of the two Lists is longer than the other, its
remaining elements are ignored.zip
in interface BooleanList
zip
in interface MutableBooleanList
public <V> MutableList<V> collectWithIndex(BooleanIntToObjectFunction<? extends V> function)
collectWithIndex
in interface BooleanList
collectWithIndex
in interface MutableBooleanList
collectWithIndex
in interface OrderedBooleanIterable
collectWithIndex
in interface ReversibleBooleanIterable
public <V,R extends java.util.Collection<V>> R collectWithIndex(BooleanIntToObjectFunction<? extends V> function, R target)
collectWithIndex
in interface OrderedBooleanIterable
Copyright © 2004–2020. All rights reserved.