@NotThreadSafe public final class UnmodifiableBooleanStack extends Object implements MutableBooleanStack, Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
allSatisfy(BooleanPredicate predicate) |
boolean |
anySatisfy(BooleanPredicate predicate) |
void |
appendString(Appendable appendable)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String separator)
Prints a string representation of this collection onto the given
Appendable. |
void |
appendString(Appendable appendable,
String start,
String separator,
String end)
Prints a string representation of this collection onto the given
Appendable. |
LazyBooleanIterable |
asLazy() |
MutableBooleanStack |
asSynchronized() |
MutableBooleanStack |
asUnmodifiable() |
BooleanIterator |
booleanIterator() |
void |
clear()
Clears the Stack
|
<V> MutableStack<V> |
collect(BooleanToObjectFunction<? extends V> function) |
boolean |
contains(boolean value) |
boolean |
containsAll(boolean... source) |
boolean |
containsAll(BooleanIterable source) |
int |
count(BooleanPredicate predicate) |
boolean |
detectIfNone(BooleanPredicate predicate,
boolean ifNone) |
void |
each(BooleanProcedure procedure) |
boolean |
equals(Object otherStack)
Follows the same general contract as
StackIterable.equals(Object). |
void |
forEach(BooleanProcedure procedure) |
int |
hashCode()
Follows the same general contract as
StackIterable.hashCode(). |
<T> T |
injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
String |
makeString()
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space). |
String |
makeString(String separator)
Returns a string representation of this collection by delegating to
PrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String). |
String |
makeString(String start,
String separator,
String end)
Returns a string representation of this collection.
|
boolean |
noneSatisfy(BooleanPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
boolean |
peek()
Returns the top of the stack.
|
BooleanList |
peek(int count)
Returns BooleanList of the number of elements specified by the count, beginning with the top of the stack.
|
boolean |
peekAt(int index)
Returns the element at the specified index.
|
boolean |
pop()
Removes and returns the top element of the stack.
|
BooleanList |
pop(int count)
Removes and returns a BooleanList of the number of elements specified by the count, beginning with the top of the stack.
|
void |
push(boolean item)
Adds an item to the top of the stack.
|
MutableBooleanStack |
reject(BooleanPredicate predicate) |
MutableBooleanStack |
select(BooleanPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
boolean[] |
toArray() |
MutableBooleanBag |
toBag() |
ImmutableBooleanStack |
toImmutable() |
MutableBooleanList |
toList() |
MutableBooleanSet |
toSet() |
String |
toString()
Returns a string representation of this PrimitiveIterable.
|
public void push(boolean item)
MutableBooleanStackpush in interface MutableBooleanStackpublic boolean pop()
MutableBooleanStackpop in interface MutableBooleanStackpublic BooleanList pop(int count)
MutableBooleanStackpop in interface MutableBooleanStackpublic boolean peek()
BooleanStackpeek in interface BooleanStackpublic BooleanList peek(int count)
BooleanStackpeek in interface BooleanStackpublic boolean peekAt(int index)
BooleanStackpeekAt in interface BooleanStackindex - the location to peek intopublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void clear()
MutableBooleanStackclear in interface MutableBooleanStackpublic boolean contains(boolean value)
contains in interface BooleanIterablepublic boolean containsAll(boolean... source)
containsAll in interface BooleanIterablepublic boolean containsAll(BooleanIterable source)
containsAll in interface BooleanIterablepublic BooleanIterator booleanIterator()
booleanIterator in interface BooleanIterablepublic void forEach(BooleanProcedure procedure)
forEach in interface BooleanIterablepublic void each(BooleanProcedure procedure)
each in interface BooleanIterablepublic int count(BooleanPredicate predicate)
count in interface BooleanIterablepublic boolean anySatisfy(BooleanPredicate predicate)
anySatisfy in interface BooleanIterablepublic boolean allSatisfy(BooleanPredicate predicate)
allSatisfy in interface BooleanIterablepublic boolean noneSatisfy(BooleanPredicate predicate)
noneSatisfy in interface BooleanIterablepublic boolean detectIfNone(BooleanPredicate predicate, boolean ifNone)
detectIfNone in interface BooleanIterablepublic MutableBooleanStack select(BooleanPredicate predicate)
select in interface BooleanIterableselect in interface BooleanStackselect in interface MutableBooleanStackpublic MutableBooleanStack reject(BooleanPredicate predicate)
reject in interface BooleanIterablereject in interface BooleanStackreject in interface MutableBooleanStackpublic <V> MutableStack<V> collect(BooleanToObjectFunction<? extends V> function)
collect in interface BooleanIterablecollect in interface BooleanStackcollect in interface MutableBooleanStackpublic boolean[] toArray()
toArray in interface BooleanIterablepublic String toString()
PrimitiveIterabletoString in interface PrimitiveIterabletoString in class Objectpublic String makeString()
PrimitiveIterablePrimitiveIterable.makeString(String) and defaulting
the separator parameter to the characters ", " (comma and space).makeString in interface PrimitiveIterablepublic String makeString(String separator)
PrimitiveIterablePrimitiveIterable.makeString(String, String, String)
and defaulting the start and end parameters to "" (the empty String).makeString in interface PrimitiveIterablepublic String makeString(String start, String separator, String end)
PrimitiveIterablemakeString in interface PrimitiveIterablepublic void appendString(Appendable appendable)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString().appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String separator)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String).appendString in interface PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic MutableBooleanList toList()
toList in interface BooleanIterablepublic MutableBooleanSet toSet()
toSet in interface BooleanIterablepublic MutableBooleanBag toBag()
toBag in interface BooleanIterablepublic boolean equals(Object otherStack)
BooleanStackStackIterable.equals(Object).equals in interface BooleanStackequals in class Objectpublic int hashCode()
BooleanStackStackIterable.hashCode().hashCode in interface BooleanStackhashCode in class Objectpublic LazyBooleanIterable asLazy()
asLazy in interface BooleanIterablepublic MutableBooleanStack asUnmodifiable()
asUnmodifiable in interface MutableBooleanStackpublic MutableBooleanStack asSynchronized()
asSynchronized in interface MutableBooleanStackpublic ImmutableBooleanStack toImmutable()
toImmutable in interface BooleanStackpublic <T> T injectInto(T injectedValue,
ObjectBooleanToObjectFunction<? super T,? extends T> function)
injectInto in interface BooleanIterableCopyright © 2004–2016. All rights reserved.