CharIterable
, PrimitiveIterable
AbstractCharSet
, AbstractMutableCharValuesMap
, CharAdapter
, CharArrayList
, CharHashBag
public abstract class AbstractCharIterable extends Object implements CharIterable
Constructor | Description |
---|---|
AbstractCharIterable() |
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.
|
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
public String toString()
PrimitiveIterable
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());
toString
in interface PrimitiveIterable
toString
in class Object
AbstractCollection.toString()
public char minIfEmpty(char defaultValue)
minIfEmpty
in interface CharIterable
public char maxIfEmpty(char defaultValue)
maxIfEmpty
in interface CharIterable
public double average()
average
in interface CharIterable
public double median()
median
in interface CharIterable
public char[] toSortedArray()
toSortedArray
in interface CharIterable
public MutableCharList toSortedList()
toSortedList
in interface CharIterable
public LazyCharIterable asLazy()
CharIterable
asLazy
in interface CharIterable
public MutableCharList toList()
CharIterable
toList
in interface CharIterable
public MutableCharSet toSet()
CharIterable
toSet
in interface CharIterable
public MutableCharBag toBag()
CharIterable
toBag
in interface CharIterable
public boolean containsAll(char... source)
CharIterable
containsAll
in interface CharIterable
public boolean containsAll(CharIterable source)
CharIterable
containsAll
in interface CharIterable
Copyright © 2004–2019. All rights reserved.