CharIterable, CharValuesMap, MutableCharValuesMap, PrimitiveIterableByteCharHashMap, CharCharHashMap, DoubleCharHashMap, FloatCharHashMap, IntCharHashMap, LongCharHashMap, ShortCharHashMappublic abstract class AbstractMutableCharValuesMap extends AbstractCharIterable implements MutableCharValuesMap
| Constructor | Description |
|---|---|
AbstractMutableCharValuesMap() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(CharPredicate predicate) |
Returns true if all of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(CharPredicate predicate) |
Returns true if any of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
Prints a string representation of this collection onto the given
Appendable. |
<V> MutableBag<V> |
collect(CharToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
contains(char value) |
Returns true if the value is contained in the CharIterable, and false if it is 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.
|
boolean |
containsValue(char value) |
|
int |
count(CharPredicate predicate) |
Returns a count of the number of elements in the CharIterable that return true for the
specified predicate.
|
char |
detectIfNone(CharPredicate predicate,
char value) |
|
void |
each(CharProcedure procedure) |
A synonym for forEach.
|
void |
forEach(CharProcedure procedure) |
Applies the CharProcedure to each element in the CharIterable.
|
void |
forEachValue(CharProcedure procedure) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
char |
max() |
|
char |
min() |
|
boolean |
noneSatisfy(CharPredicate predicate) |
Returns true if none of the elements in the CharIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
MutableCharBag |
reject(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return false for the specified predicate.
|
MutableCharBag |
select(CharPredicate predicate) |
Returns a new CharIterable with all of the elements in the CharIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
char[] |
toArray() |
Converts the CharIterable to a primitive char array.
|
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringasLazy, average, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListvaluescharIterator, clearequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, makeString, makeString, makeString, toStringpublic boolean contains(char value)
CharIterablecontains in interface CharIterablepublic boolean containsAll(CharIterable source)
CharIterablecontainsAll in interface CharIterablecontainsAll in class AbstractCharIterablepublic char max()
max in interface CharIterablepublic char min()
min in interface CharIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void forEach(CharProcedure procedure)
CharIterableforEach in interface CharIterablepublic void each(CharProcedure procedure)
CharIterableeach in interface CharIterablepublic 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 char[] toArray()
CharIterabletoArray in interface CharIterablepublic MutableCharBag select(CharPredicate predicate)
CharIterableselect in interface CharIterableselect in interface CharValuesMapselect in interface MutableCharValuesMappublic MutableCharBag reject(CharPredicate predicate)
CharIterablereject in interface CharIterablereject in interface CharValuesMapreject in interface MutableCharValuesMappublic <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
CharIterablecollect in interface CharIterablecollect in interface CharValuesMapcollect in interface MutableCharValuesMappublic char detectIfNone(CharPredicate predicate, char value)
detectIfNone in interface CharIterablepublic int count(CharPredicate predicate)
CharIterablecount in interface CharIterablepublic boolean anySatisfy(CharPredicate predicate)
CharIterableanySatisfy in interface CharIterablepublic boolean allSatisfy(CharPredicate predicate)
CharIterableallSatisfy in interface CharIterablepublic boolean noneSatisfy(CharPredicate predicate)
CharIterablenoneSatisfy in interface CharIterablepublic long sum()
sum in interface CharIterablepublic boolean containsValue(char value)
containsValue in interface CharValuesMappublic void forEachValue(CharProcedure procedure)
forEachValue in interface CharValuesMapCopyright © 2004–2017. All rights reserved.