Class UnmodifiableBooleanStack
- java.lang.Object
-
- org.eclipse.collections.impl.stack.mutable.primitive.UnmodifiableBooleanStack
-
- All Implemented Interfaces:
Serializable,BooleanIterable,OrderedBooleanIterable,PrimitiveIterable,BooleanStack,MutableBooleanStack
public class UnmodifiableBooleanStack extends Object implements MutableBooleanStack, Serializable
This file was automatically generated from template file unmodifiablePrimitiveStack.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableBooleanStack(MutableBooleanStack stack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallSatisfy(BooleanPredicate predicate)booleananySatisfy(BooleanPredicate predicate)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)LazyBooleanIterableasLazy()MutableBooleanStackasSynchronized()MutableBooleanStackasUnmodifiable()BooleanIteratorbooleanIterator()RichIterable<BooleanIterable>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)booleanequals(Object otherStack)voidforEachWithIndex(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()StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)MutableBooleanStacknewEmpty()booleannoneSatisfy(BooleanPredicate predicate)booleannotEmpty()booleanpeek()BooleanListpeek(int count)booleanpeekAt(int index)booleanpop()BooleanListpop(int count)voidpush(boolean item)MutableBooleanStackreject(BooleanPredicate predicate)MutableBooleanStackselect(BooleanPredicate predicate)intsize()boolean[]toArray()boolean[]toArray(boolean[] target)MutableBooleanBagtoBag()ImmutableBooleanStacktoImmutable()MutableBooleanListtoList()MutableBooleanSettoSet()MutableBooleanStacktoStack()StringtoString()-
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, select
-
Methods inherited from interface org.eclipse.collections.api.stack.primitive.MutableBooleanStack
rejectWithIndex, selectWithIndex, tap
-
Methods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedBooleanIterable
rejectWithIndex, selectWithIndex
-
-
-
-
Constructor Detail
-
UnmodifiableBooleanStack
public UnmodifiableBooleanStack(MutableBooleanStack stack)
-
-
Method Detail
-
push
public void push(boolean item)
- Specified by:
pushin interfaceMutableBooleanStack
-
pop
public boolean pop()
- Specified by:
popin interfaceMutableBooleanStack
-
pop
public BooleanList pop(int count)
- Specified by:
popin interfaceMutableBooleanStack
-
peek
public boolean peek()
- Specified by:
peekin interfaceBooleanStack
-
peek
public BooleanList peek(int count)
- 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
public boolean containsAll(BooleanIterable source)
- Specified by:
containsAllin interfaceBooleanIterable
-
booleanIterator
public BooleanIterator booleanIterator()
- Specified by:
booleanIteratorin interfaceBooleanIterable
-
each
public void each(BooleanProcedure procedure)
- Specified by:
eachin interfaceBooleanIterable- Since:
- 7.0.
-
count
public int count(BooleanPredicate predicate)
- Specified by:
countin interfaceBooleanIterable
-
anySatisfy
public boolean anySatisfy(BooleanPredicate predicate)
- Specified by:
anySatisfyin interfaceBooleanIterable
-
allSatisfy
public boolean allSatisfy(BooleanPredicate predicate)
- Specified by:
allSatisfyin interfaceBooleanIterable
-
noneSatisfy
public boolean noneSatisfy(BooleanPredicate predicate)
- Specified by:
noneSatisfyin interfaceBooleanIterable
-
detectIfNone
public boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
- Specified by:
detectIfNonein interfaceBooleanIterable
-
select
public MutableBooleanStack select(BooleanPredicate predicate)
- Specified by:
selectin interfaceBooleanIterable- Specified by:
selectin interfaceBooleanStack- Specified by:
selectin interfaceMutableBooleanStack- Specified by:
selectin interfaceOrderedBooleanIterable
-
reject
public MutableBooleanStack reject(BooleanPredicate predicate)
- Specified by:
rejectin interfaceBooleanIterable- Specified by:
rejectin interfaceBooleanStack- Specified by:
rejectin interfaceMutableBooleanStack- Specified by:
rejectin interfaceOrderedBooleanIterable
-
collect
public <V> MutableStack<V> collect(BooleanToObjectFunction<? extends V> function)
- 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
public String toString()
- Specified by:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject
-
makeString
public String makeString()
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfacePrimitiveIterable
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfacePrimitiveIterable
-
toList
public MutableBooleanList toList()
- Specified by:
toListin interfaceBooleanIterable
-
toSet
public MutableBooleanSet toSet()
- Specified by:
toSetin interfaceBooleanIterable
-
toBag
public MutableBooleanBag toBag()
- Specified by:
toBagin interfaceBooleanIterable
-
equals
public boolean equals(Object otherStack)
- Specified by:
equalsin interfaceBooleanStack- Overrides:
equalsin classObject
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceBooleanStack- Overrides:
hashCodein classObject
-
asLazy
public LazyBooleanIterable asLazy()
- Specified by:
asLazyin interfaceBooleanIterable
-
asUnmodifiable
public MutableBooleanStack asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableBooleanStack
-
asSynchronized
public MutableBooleanStack asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableBooleanStack
-
toImmutable
public ImmutableBooleanStack toImmutable()
- Specified by:
toImmutablein interfaceBooleanStack
-
newEmpty
public MutableBooleanStack 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
public RichIterable<BooleanIterable> chunk(int size)
- 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
public void forEachWithIndex(BooleanIntProcedure procedure)
- Specified by:
forEachWithIndexin interfaceOrderedBooleanIterable
-
collectWithIndex
public <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.- 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
public MutableBooleanStack toStack()
- Specified by:
toStackin interfaceOrderedBooleanIterable
-
-