CharIterable
, CharValuesMap
, MutableCharValuesMap
, PrimitiveIterable
ByteCharHashMap
, CharCharHashMap
, DoubleCharHashMap
, FloatCharHashMap
, IntCharHashMap
, LongCharHashMap
, ShortCharHashMap
public 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(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.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, toString
asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
tap, values
charIterator, clear
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(char value)
CharIterable
contains
in interface CharIterable
public boolean containsAll(CharIterable source)
CharIterable
containsAll
in interface CharIterable
containsAll
in class AbstractCharIterable
public char max()
max
in interface CharIterable
public char min()
min
in interface CharIterable
public int size()
PrimitiveIterable
size
in interface PrimitiveIterable
public boolean isEmpty()
PrimitiveIterable
isEmpty
in interface PrimitiveIterable
public boolean notEmpty()
PrimitiveIterable
notEmpty
in interface PrimitiveIterable
public void forEach(CharProcedure procedure)
CharIterable
forEach
in interface CharIterable
public void each(CharProcedure procedure)
CharIterable
each
in interface CharIterable
public void appendString(java.lang.Appendable appendable, java.lang.String start, java.lang.String separator, java.lang.String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public char[] toArray()
CharIterable
toArray
in interface CharIterable
public MutableCharBag select(CharPredicate predicate)
CharIterable
select
in interface CharIterable
select
in interface CharValuesMap
select
in interface MutableCharValuesMap
public MutableCharBag reject(CharPredicate predicate)
CharIterable
reject
in interface CharIterable
reject
in interface CharValuesMap
reject
in interface MutableCharValuesMap
public <V> MutableBag<V> collect(CharToObjectFunction<? extends V> function)
CharIterable
collect
in interface CharIterable
collect
in interface CharValuesMap
collect
in interface MutableCharValuesMap
public char detectIfNone(CharPredicate predicate, char value)
detectIfNone
in interface CharIterable
public int count(CharPredicate predicate)
CharIterable
count
in interface CharIterable
public boolean anySatisfy(CharPredicate predicate)
CharIterable
anySatisfy
in interface CharIterable
public boolean allSatisfy(CharPredicate predicate)
CharIterable
allSatisfy
in interface CharIterable
public boolean noneSatisfy(CharPredicate predicate)
CharIterable
noneSatisfy
in interface CharIterable
public long sum()
sum
in interface CharIterable
public boolean containsValue(char value)
containsValue
in interface CharValuesMap
public void forEachValue(CharProcedure procedure)
forEachValue
in interface CharValuesMap
Copyright © 2004–2017. All rights reserved.