Class AbstractCharStack
java.lang.Object
org.eclipse.collections.impl.stack.primitive.AbstractCharStack
- All Implemented Interfaces:
CharIterable,OrderedCharIterable,PrimitiveIterable,CharStack
- Direct Known Subclasses:
CharArrayStack
This file was automatically generated from template file abstractPrimitiveStack.stg.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(CharPredicate predicate) booleananySatisfy(CharPredicate predicate) voidappendString(Appendable appendable) voidappendString(Appendable appendable, String separator) voidappendString(Appendable appendable, String start, String separator, String end) asLazy()doubleaverage()chunk(int size) booleancontains(char value) booleancontainsAll(char... source) booleancontainsAll(CharIterable source) intcount(CharPredicate predicate) chardetectIfNone(CharPredicate predicate, char ifNone) voideach(CharProcedure procedure) booleanvoidforEachWithIndex(CharIntProcedure procedure) chargetFirst()inthashCode()intindexOf(char value) <V> VinjectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) <T> TinjectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T, ? extends T> function) makeString(String separator) makeString(String start, String separator, String end) charmax()charmaxIfEmpty(char defaultValue) doublemedian()charmin()charminIfEmpty(char defaultValue) booleannoneSatisfy(CharPredicate predicate) charpeek()peek(int count) charpeekAt(int index) intsize()longsum()char[]toArray()char[]toArray(char[] target) toBag()toList()toSet()char[]toString()Methods inherited from interface org.eclipse.collections.api.CharIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.stack.primitive.CharStack
collect, collectWithIndex, reject, rejectWithIndex, select, selectWithIndex, tap, toImmutableMethods inherited from interface org.eclipse.collections.api.ordered.primitive.OrderedCharIterable
collectWithIndex, rejectWithIndex, selectWithIndex, toStackMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
isEmpty, notEmpty
-
Constructor Details
-
AbstractCharStack
public AbstractCharStack()
-
-
Method Details
-
peek
public char peek() -
peek
-
peekAt
public char peekAt(int index) -
charIterator
- Specified by:
charIteratorin interfaceCharIterable
-
each
- Specified by:
eachin interfaceCharIterable- Since:
- 7.0.
-
count
- Specified by:
countin interfaceCharIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceCharIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceCharIterable
-
noneSatisfy
- Specified by:
noneSatisfyin interfaceCharIterable
-
detectIfNone
- Specified by:
detectIfNonein interfaceCharIterable
-
toArray
public char[] toArray()- Specified by:
toArrayin interfaceCharIterable
-
toArray
public char[] toArray(char[] target) - Specified by:
toArrayin interfaceCharIterable
-
contains
public boolean contains(char value) - Specified by:
containsin interfaceCharIterable
-
containsAll
public boolean containsAll(char... source) - Specified by:
containsAllin interfaceCharIterable
-
containsAll
- Specified by:
containsAllin interfaceCharIterable
-
toList
- Specified by:
toListin interfaceCharIterable
-
toSet
- Specified by:
toSetin interfaceCharIterable
-
toBag
- Specified by:
toBagin interfaceCharIterable
-
injectInto
public <V> V injectInto(V injectedValue, ObjectCharToObjectFunction<? super V, ? extends V> function) - Specified by:
injectIntoin interfaceCharIterable
-
asLazy
- Specified by:
asLazyin interfaceCharIterable
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
equals
-
hashCode
public int hashCode() -
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
-
getFirst
public char getFirst()- Specified by:
getFirstin interfaceOrderedCharIterable
-
indexOf
public int indexOf(char value) - Specified by:
indexOfin interfaceOrderedCharIterable
-
injectIntoWithIndex
public <T> T injectIntoWithIndex(T injectedValue, ObjectCharIntToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoWithIndexin interfaceOrderedCharIterable
-
forEachWithIndex
- Specified by:
forEachWithIndexin interfaceOrderedCharIterable
-
chunk
- Specified by:
chunkin interfaceCharIterable
-
sum
public long sum()- Specified by:
sumin interfaceCharIterable
-
max
public char max()- Specified by:
maxin interfaceCharIterable
-
min
public char min()- Specified by:
minin interfaceCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue) - Specified by:
minIfEmptyin interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue) - Specified by:
maxIfEmptyin interfaceCharIterable
-
average
public double average()- Specified by:
averagein interfaceCharIterable
-
median
public double median()- Specified by:
medianin interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArrayin interfaceCharIterable
-