Class UnmodifiableBooleanStack
java.lang.Object
org.eclipse.collections.impl.stack.mutable.primitive.UnmodifiableBooleanStack
- All Implemented Interfaces:
Serializable,BooleanIterable,OrderedBooleanIterable,PrimitiveIterable,BooleanStack,MutableBooleanStack
This file was automatically generated from template file unmodifiablePrimitiveStack.stg.
- Since:
- 3.1.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(BooleanPredicate predicate) booleananySatisfy(BooleanPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()chunk(int size) voidclear()<V> MutableStack<V>collect(BooleanToObjectFunction<? extends V> function) <V> MutableStack<V>collectWithIndex(BooleanIntToObjectFunction<? extends V> function) Returns a new MutableStack 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.booleancontains(boolean value) booleancontainsAll(boolean... source) booleancontainsAll(BooleanIterable source) intcount(BooleanPredicate predicate) booleandetectIfNone(BooleanPredicate predicate, boolean ifNone) voideach(BooleanProcedure procedure) booleanvoidforEachWithIndex(BooleanIntProcedure procedure) booleangetFirst()inthashCode()intindexOf(boolean value) <T> TinjectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) <T> TinjectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function) booleanisEmpty()makeString(String separator) makeString(String start, String separator, String end) newEmpty()booleannoneSatisfy(BooleanPredicate predicate) booleannotEmpty()booleanpeek()peek(int count) booleanpeekAt(int index) booleanpop()pop(int count) voidpush(boolean item) reject(BooleanPredicate predicate) select(BooleanPredicate predicate) intsize()boolean[]toArray()boolean[]toArray(boolean[] target) toBag()toList()toSet()toStack()toString()Methods inherited from interface org.eclipse.collections.api.BooleanIterable
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, reduce, reduceIfEmpty, reject, selectMethods inherited from interface org.eclipse.collections.api.stack.primitive.MutableBooleanStack
rejectWithIndex, selectWithIndex, tapMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable
rejectWithIndex, selectWithIndex
-
Constructor Details
-
UnmodifiableBooleanStack
-
-
Method Details
-
push
public void push(boolean item) - Specified by:
pushin interfaceMutableBooleanStack
-
pop
public boolean pop()- Specified by:
popin interfaceMutableBooleanStack
-
pop
- Specified by:
popin interfaceMutableBooleanStack
-
peek
public boolean peek()- Specified by:
peekin interfaceBooleanStack
-
peek
- Specified by:
peekin interfaceBooleanStack
-
peekAt
public boolean peekAt(int index) - Specified by:
peekAtin interfaceBooleanStack
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveIterable
-
notEmpty
public boolean notEmpty()- Specified by:
notEmptyin interfacePrimitiveIterable
-
clear
public void clear()- Specified by:
clearin interfaceMutableBooleanStack
-
contains
public boolean contains(boolean value) - Specified by:
containsin interfaceBooleanIterable
-
containsAll
public boolean containsAll(boolean... source) - Specified by:
containsAllin interfaceBooleanIterable
-
containsAll
- Specified by:
containsAllin interfaceBooleanIterable
-
booleanIterator
- Specified by:
booleanIteratorin interfaceBooleanIterable
-
each
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceBooleanIterable
-
select
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanStack- Specified by:
selectin interfaceMutableBooleanStack- Specified by:
selectin interfaceOrderedBooleanIterable
-
reject
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanStack- Specified by:
rejectin interfaceMutableBooleanStack- Specified by:
rejectin interfaceOrderedBooleanIterable
-
collect
- Specified by:
collectin interfaceBooleanIterable- Specified by:
collectin interfaceBooleanStack- Specified by:
collectin interfaceMutableBooleanStack- Specified by:
collectin interfaceOrderedBooleanIterable
-
toArray
public boolean[] toArray()- Specified by:
toArrayin interfaceBooleanIterable
-
toArray
public boolean[] toArray(boolean[] target) - Specified by:
toArrayin interfaceBooleanIterable
-
toString
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
- Specified by:
toListin interfaceBooleanIterable
-
toSet
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
- Specified by:
toBagin interfaceBooleanIterable
-
equals
- Specified by:
equalsin interfaceBooleanStack- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceBooleanStack- Overrides:
hashCodein classObject
-
asLazy
- Specified by:
asLazyin interfaceBooleanIterable
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableBooleanStack
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableBooleanStack
-
toImmutable
- Specified by:
toImmutablein interfaceBooleanStack
-
newEmpty
- Specified by:
newEmptyin interfaceMutableBooleanStack- Since:
- 9.2.
-
injectInto
public <T> T injectInto(T injectedValue, ObjectBooleanToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceBooleanIterable
-
chunk
- Specified by:
chunkin interfaceBooleanIterable
-
getFirst
public boolean getFirst()- Specified by:
getFirstin interfaceOrderedBooleanIterable
-
indexOf
public int indexOf(boolean value) - Specified by:
indexOfin interfaceOrderedBooleanIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectBooleanIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedBooleanIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedBooleanIterable
-
collectWithIndex
Returns a new MutableStack using results obtained by applying the specified function to each element and its corresponding index.- Specified by:
collectWithIndexin interfaceBooleanStack- Specified by:
collectWithIndexin interfaceMutableBooleanStack- Specified by:
collectWithIndexin interfaceOrderedBooleanIterable- 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
-