Class AbstractCharIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractCharIterable
- All Implemented Interfaces:
CharIterable
,PrimitiveIterable
- Direct Known Subclasses:
AbstractCharSet
,AbstractMutableCharValuesMap
,CharAdapter
,CharArrayList
,CharHashBag
public abstract class AbstractCharIterable extends Object implements CharIterable
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
Constructors Constructor Description AbstractCharIterable()
-
Method Summary
Modifier and Type Method Description LazyCharIterable
asLazy()
Returns a LazyCharIterable adapter wrapping the source CharIterable.double
average()
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.char
maxIfEmpty(char defaultValue)
double
median()
char
minIfEmpty(char defaultValue)
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()
MutableCharList
toSortedList()
String
toString()
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.CharIterable
allSatisfy, anySatisfy, averageIfEmpty, charIterator, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray, toArray
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
AbstractCharIterable
public AbstractCharIterable()
-
-
Method Details
-
toString
Description copied from interface:PrimitiveIterable
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
minIfEmpty
public char minIfEmpty(char defaultValue)- Specified by:
minIfEmpty
in interfaceCharIterable
-
maxIfEmpty
public char maxIfEmpty(char defaultValue)- Specified by:
maxIfEmpty
in interfaceCharIterable
-
average
public double average()- Specified by:
average
in interfaceCharIterable
-
median
public double median()- Specified by:
median
in interfaceCharIterable
-
toSortedArray
public char[] toSortedArray()- Specified by:
toSortedArray
in interfaceCharIterable
-
toSortedList
- Specified by:
toSortedList
in interfaceCharIterable
-
asLazy
Description copied from interface:CharIterable
Returns a LazyCharIterable adapter wrapping the source CharIterable.- Specified by:
asLazy
in interfaceCharIterable
-
toList
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharList.- Specified by:
toList
in interfaceCharIterable
-
toSet
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharSet.- Specified by:
toSet
in interfaceCharIterable
-
toBag
Description copied from interface:CharIterable
Converts the CharIterable to a new MutableCharBag.- Specified by:
toBag
in interfaceCharIterable
-
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
-
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
-