Class UnmodifiableBooleanList
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableBooleanCollection
org.eclipse.collections.impl.list.mutable.primitive.UnmodifiableBooleanList
- All Implemented Interfaces:
Serializable,BooleanIterable,MutableBooleanCollection,BooleanList,MutableBooleanList,OrderedBooleanIterable,ReversibleBooleanIterable,PrimitiveIterable
public class UnmodifiableBooleanList
extends AbstractUnmodifiableBooleanCollection
implements MutableBooleanList
This file was automatically generated from template file unmodifiablePrimitiveList.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAllAtIndex(int index, boolean... source) booleanaddAllAtIndex(int index, BooleanIterable source) voidaddAtIndex(int index, boolean element) boxed()<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>>
RcollectWithIndex(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.distinct()booleanvoidforEachWithIndex(BooleanIntProcedure procedure) booleanget(int index) booleangetFirst()booleangetLast()inthashCode()intindexOf(boolean value) <T> TinjectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function) intlastIndexOf(boolean value) newEmpty()reject(BooleanPredicate predicate) rejectWithIndex(BooleanIntPredicate predicate) Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.<R extends MutableBooleanCollection>
RrejectWithIndex(BooleanIntPredicate predicate, R target) Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.booleanremoveAtIndex(int index) select(BooleanPredicate predicate) selectWithIndex(BooleanIntPredicate predicate) Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.<R extends MutableBooleanCollection>
RselectWithIndex(BooleanIntPredicate predicate, R target) Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.booleanset(int index, boolean element) subList(int fromIndex, int toIndex) toStack()with(boolean element) withAll(BooleanIterable elements) without(boolean element) withoutAll(BooleanIterable elements) <T> MutableList<BooleanObjectPair<T>>zipBoolean(BooleanIterable iterable) Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableBooleanCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, 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, toStringMethods inherited from interface org.eclipse.collections.api.BooleanIterable
allSatisfy, anySatisfy, asLazy, 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, toSetMethods inherited from interface org.eclipse.collections.api.list.primitive.BooleanList
forEachInBothMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableBooleanCollection
add, addAll, addAll, booleanIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface org.eclipse.collections.api.list.primitive.MutableBooleanList
swap, tapMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
UnmodifiableBooleanList
-
-
Method Details
-
get
public boolean get(int index) - Specified by:
getin interfaceBooleanList
-
getFirst
public boolean getFirst()- Specified by:
getFirstin interfaceOrderedBooleanIterable
-
getLast
public boolean getLast()- Specified by:
getLastin interfaceReversibleBooleanIterable
-
indexOf
public int indexOf(boolean value) - Specified by:
indexOfin interfaceOrderedBooleanIterable
-
lastIndexOf
public int lastIndexOf(boolean value) - Specified by:
lastIndexOfin interfaceBooleanList
-
boxed
- Specified by:
boxedin interfaceMutableBooleanList
-
addAtIndex
public void addAtIndex(int index, boolean element) - Specified by:
addAtIndexin interfaceMutableBooleanList
-
addAllAtIndex
public boolean addAllAtIndex(int index, boolean... source) - Specified by:
addAllAtIndexin interfaceMutableBooleanList
-
addAllAtIndex
- Specified by:
addAllAtIndexin interfaceMutableBooleanList
-
removeAtIndex
public boolean removeAtIndex(int index) - Specified by:
removeAtIndexin interfaceMutableBooleanList
-
set
public boolean set(int index, boolean element) - Specified by:
setin interfaceMutableBooleanList
-
with
- Specified by:
within interfaceMutableBooleanCollection- Specified by:
within interfaceMutableBooleanList- Overrides:
within classAbstractUnmodifiableBooleanCollection
-
without
- Specified by:
withoutin interfaceMutableBooleanCollection- Specified by:
withoutin interfaceMutableBooleanList- Overrides:
withoutin classAbstractUnmodifiableBooleanCollection
-
withAll
- Specified by:
withAllin interfaceMutableBooleanCollection- Specified by:
withAllin interfaceMutableBooleanList- Overrides:
withAllin classAbstractUnmodifiableBooleanCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableBooleanCollection- Specified by:
withoutAllin interfaceMutableBooleanList- Overrides:
withoutAllin classAbstractUnmodifiableBooleanCollection
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanList- Specified by:
selectin interfaceMutableBooleanCollection- Specified by:
selectin interfaceMutableBooleanList- Specified by:
selectin interfaceOrderedBooleanIterable- Specified by:
selectin interfaceReversibleBooleanIterable- Overrides:
selectin classAbstractUnmodifiableBooleanCollection
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanList- Specified by:
rejectin interfaceMutableBooleanCollection- Specified by:
rejectin interfaceMutableBooleanList- Specified by:
rejectin interfaceOrderedBooleanIterable- Specified by:
rejectin interfaceReversibleBooleanIterable- Overrides:
rejectin classAbstractUnmodifiableBooleanCollection
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanList- Specified by:
collectin interfaceMutableBooleanCollection- Specified by:
collectin interfaceMutableBooleanList- Specified by:
collectin interfaceOrderedBooleanIterable- Specified by:
collectin interfaceReversibleBooleanIterable- Overrides:
collectin classAbstractUnmodifiableBooleanCollection
-
equals
- Specified by:
equalsin interfaceBooleanList- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceBooleanList- Overrides:
hashCodein classObject
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanCollection- Specified by:
asUnmodifiablein interfaceMutableBooleanList- Overrides:
asUnmodifiablein classAbstractUnmodifiableBooleanCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanCollection- Specified by:
asSynchronizedin interfaceMutableBooleanList- Overrides:
asSynchronizedin classAbstractUnmodifiableBooleanCollection
-
toImmutable
- Specified by:
toImmutablein interfaceBooleanList- Specified by:
toImmutablein interfaceMutableBooleanCollection- Specified by:
toImmutablein interfaceMutableBooleanList- Overrides:
toImmutablein classAbstractUnmodifiableBooleanCollection
-
newEmpty
- Specified by:
newEmptyin interfaceMutableBooleanCollection- Specified by:
newEmptyin interfaceMutableBooleanList- Since:
- 9.2.
-
reverseThis
- Specified by:
reverseThisin interfaceMutableBooleanList
-
toReversed
- Specified by:
toReversedin interfaceBooleanList- Specified by:
toReversedin interfaceMutableBooleanList- Specified by:
toReversedin interfaceReversibleBooleanIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedBooleanIterable
-
asReversed
- Specified by:
asReversedin interfaceReversibleBooleanIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedBooleanIterable- Specified by:
injectIntoWithIndexin interfaceReversibleBooleanIterable
-
distinct
- Specified by:
distinctin interfaceBooleanList- Specified by:
distinctin interfaceMutableBooleanList- Specified by:
distinctin interfaceReversibleBooleanIterable- Since:
- 6.0.
-
subList
- Specified by:
subListin interfaceBooleanList- Specified by:
subListin interfaceMutableBooleanList
-
zipBoolean
- Specified by:
zipBooleanin interfaceBooleanList- Specified by:
zipBooleanin interfaceMutableBooleanList- Since:
- 9.1.
-
zip
- Specified by:
zipin interfaceBooleanList- Specified by:
zipin interfaceMutableBooleanList- Since:
- 9.1.
-
selectWithIndex
Returns a new MutableBooleanList including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceBooleanList- Specified by:
selectWithIndexin interfaceMutableBooleanList- Specified by:
selectWithIndexin interfaceOrderedBooleanIterable- Specified by:
selectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
selectWithIndex
public <R extends MutableBooleanCollection> R selectWithIndex(BooleanIntPredicate predicate, R target) Returns a new MutableBooleanCollection including all elements with corresponding indexes matching the specified predicate.- Specified by:
selectWithIndexin interfaceOrderedBooleanIterable- Since:
- 11.1.
-
rejectWithIndex
Returns a new MutableBooleanList excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceBooleanList- Specified by:
rejectWithIndexin interfaceMutableBooleanList- Specified by:
rejectWithIndexin interfaceOrderedBooleanIterable- Specified by:
rejectWithIndexin interfaceReversibleBooleanIterable- Since:
- 11.1.
-
rejectWithIndex
public <R extends MutableBooleanCollection> R rejectWithIndex(BooleanIntPredicate predicate, R target) Returns a new MutableBooleanCollection excluding all elements with corresponding indexes matching the specified predicate.- Specified by:
rejectWithIndexin interfaceOrderedBooleanIterable- Since:
- 11.1.
-
collectWithIndex
Returns a new MutableList using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceBooleanList- Specified by:
collectWithIndexin interfaceMutableBooleanList- Specified by:
collectWithIndexin interfaceOrderedBooleanIterable- Specified by:
collectWithIndexin interfaceReversibleBooleanIterable- Since:
- 9.1.
-
collectWithIndex
public <V,R extends Collection<V>> R 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.- Specified by:
collectWithIndexin interfaceOrderedBooleanIterable- Since:
- 9.1.
-
toStack
- Specified by:
toStackin interfaceOrderedBooleanIterable
-