Class ReverseCharIterable
java.lang.Object
org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable
org.eclipse.collections.impl.lazy.primitive.ReverseCharIterable
- All Implemented Interfaces:
CharIterable
,LazyCharIterable
,PrimitiveIterable
public class ReverseCharIterable extends AbstractLazyCharIterable
This file was automatically generated from template file reversePrimitiveIterable.stg.
- Since:
- 5.0.
- See Also:
ReverseIterable
-
Constructor Summary
Constructors Constructor Description ReverseCharIterable(CharList newAdapted)
-
Method Summary
Modifier and Type Method Description static ReverseCharIterable
adapt(CharList charList)
LazyCharIterable
asLazy()
Returns a LazyCharIterable adapter wrapping the source CharIterable.double
average()
CharIterator
charIterator()
Returns a primitive iterator that can be used to iterate over the CharIterable in an imperative style.boolean
contains(char value)
Returns true if the value is contained in the CharIterable, and false if it is not.boolean
containsAll(char... source)
Returns true if the all of the values specified in the source array are contained in the CharIterable, and false if they are not.boolean
containsAll(CharIterable source)
Returns true if the all of the values specified in the source CharIterable are contained in the CharIterable, and false if they are not.void
each(CharProcedure procedure)
A synonym for forEach.boolean
isEmpty()
Returns true if this iterable has zero items.char
max()
char
maxIfEmpty(char defaultValue)
double
median()
char
min()
char
minIfEmpty(char defaultValue)
boolean
notEmpty()
The English equivalent of !this.isEmpty()int
size()
Returns the number of items in this iterable.long
sum()
char[]
toArray()
Converts the CharIterable to a primitive char array.MutableCharBag
toBag()
Converts the CharIterable to a new MutableCharBag.MutableCharList
toList()
Converts the CharIterable to a new MutableCharList.MutableCharSet
toSet()
Converts the CharIterable to a new MutableCharSet.char[]
toSortedArray()
Methods inherited from class org.eclipse.collections.impl.lazy.primitive.AbstractLazyCharIterable
allSatisfy, anySatisfy, appendString, appendString, appendString, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, count, detectIfNone, flatCollect, forEach, injectInto, makeString, makeString, makeString, noneSatisfy, reject, select, tap, toSortedList, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.CharIterable
averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollect, medianIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toArray
-
Constructor Details
-
Method Details
-
adapt
-
charIterator
Description copied from interface:CharIterable
Returns a primitive iterator that can be used to iterate over the CharIterable in an imperative style. -
each
Description copied from interface:CharIterable
A synonym for forEach.- Since:
- 7.0.
-
sum
public long sum()- Specified by:
sum
in interfaceCharIterable
- Overrides:
sum
in classAbstractLazyCharIterable
-
max
public char max()- Specified by:
max
in interfaceCharIterable
- Overrides:
max
in classAbstractLazyCharIterable
-
min
public char min()- Specified by:
min
in interfaceCharIterable
- Overrides:
min
in classAbstractLazyCharIterable
-
minIfEmpty
public char minIfEmpty(char defaultValue)- Specified by:
minIfEmpty
in interfaceCharIterable
- Overrides:
minIfEmpty
in classAbstractLazyCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)- Specified by:
maxIfEmpty
in interfaceCharIterable
- Overrides:
maxIfEmpty
in classAbstractLazyCharIterable
-
average
public double average()- Specified by:
average
in interfaceCharIterable
- Overrides:
average
in classAbstractLazyCharIterable
-
median
public double median()- Specified by:
median
in interfaceCharIterable
- Overrides:
median
in classAbstractLazyCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArray
in interfaceCharIterable
- Overrides:
toSortedArray
in classAbstractLazyCharIterable
-
toArray
public char[] toArray()Description copied from interface:CharIterable
Converts the CharIterable to a primitive char array.- Specified by:
toArray
in interfaceCharIterable
- Overrides:
toArray
in classAbstractLazyCharIterable
-
contains
public boolean contains(char value)Description copied from interface:CharIterable
Returns true if the value is contained in the CharIterable, and false if it is not.- Specified by:
contains
in interfaceCharIterable
- Overrides:
contains
in classAbstractLazyCharIterable
-
containsAll
public boolean containsAll(char... source)Description copied from interface:CharIterable
Returns true if the all of the values specified in the source array are contained in the CharIterable, and false if they are not.- Specified by:
containsAll
in interfaceCharIterable
- Overrides:
containsAll
in classAbstractLazyCharIterable
-
containsAll
Description copied from interface:CharIterable
Returns true if the all of the values specified in the source CharIterable are contained in the CharIterable, and false if they are not.- Specified by:
containsAll
in interfaceCharIterable
- Overrides:
containsAll
in classAbstractLazyCharIterable
-
size
public int size()Description copied from interface:PrimitiveIterable
Returns the number of items in this iterable.- Specified by:
size
in interfacePrimitiveIterable
- Overrides:
size
in classAbstractLazyCharIterable
-
isEmpty
public boolean isEmpty()Description copied from interface:PrimitiveIterable
Returns true if this iterable has zero items.- Specified by:
isEmpty
in interfacePrimitiveIterable
- Overrides:
isEmpty
in classAbstractLazyCharIterable
-
notEmpty
public boolean notEmpty()Description copied from interface:PrimitiveIterable
The English equivalent of !this.isEmpty()- Specified by:
notEmpty
in interfacePrimitiveIterable
- Overrides:
notEmpty
in classAbstractLazyCharIterable
-
toList
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharList.- Specified by:
toList
in interfaceCharIterable
- Overrides:
toList
in classAbstractLazyCharIterable
-
toSet
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharSet.- Specified by:
toSet
in interfaceCharIterable
- Overrides:
toSet
in classAbstractLazyCharIterable
-
toBag
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharBag.- Specified by:
toBag
in interfaceCharIterable
- Overrides:
toBag
in classAbstractLazyCharIterable
-
asLazy
Description copied from interface:CharIterable
Returns a LazyCharIterable adapter wrapping the source CharIterable.- Specified by:
asLazy
in interfaceCharIterable
- Overrides:
asLazy
in classAbstractLazyCharIterable
-