public abstract class AbstractMutableShortValuesMap extends AbstractShortIterable implements MutableShortValuesMap
Constructor and Description |
---|
AbstractMutableShortValuesMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(ShortPredicate predicate) |
boolean |
anySatisfy(ShortPredicate predicate) |
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(ShortToObjectFunction<? extends V> function) |
boolean |
contains(short value) |
boolean |
containsAll(ShortIterable source) |
boolean |
containsValue(short value) |
int |
count(ShortPredicate predicate) |
short |
detectIfNone(ShortPredicate predicate,
short value) |
void |
each(ShortProcedure procedure) |
void |
forEach(ShortProcedure procedure) |
void |
forEachValue(ShortProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
short |
max() |
short |
min() |
boolean |
noneSatisfy(ShortPredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableShortBag |
reject(ShortPredicate predicate) |
MutableShortBag |
select(ShortPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
short[] |
toArray() |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, shortIterator
values
asLazy, average, containsAll, injectInto, maxIfEmpty, median, minIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(short value)
contains
in interface ShortIterable
public boolean containsAll(ShortIterable source)
containsAll
in interface ShortIterable
containsAll
in class AbstractShortIterable
public short max()
max
in interface ShortIterable
public short min()
min
in interface ShortIterable
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(ShortProcedure procedure)
forEach
in interface ShortIterable
public void each(ShortProcedure procedure)
each
in interface ShortIterable
public void appendString(Appendable appendable, String start, String separator, String end)
PrimitiveIterable
Appendable
. Prints the string returned
by PrimitiveIterable.makeString(String, String, String)
.appendString
in interface PrimitiveIterable
public short[] toArray()
toArray
in interface ShortIterable
public MutableShortBag select(ShortPredicate predicate)
select
in interface MutableShortValuesMap
select
in interface ShortValuesMap
select
in interface ShortIterable
public MutableShortBag reject(ShortPredicate predicate)
reject
in interface MutableShortValuesMap
reject
in interface ShortValuesMap
reject
in interface ShortIterable
public <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
collect
in interface MutableShortValuesMap
collect
in interface ShortValuesMap
collect
in interface ShortIterable
public short detectIfNone(ShortPredicate predicate, short value)
detectIfNone
in interface ShortIterable
public int count(ShortPredicate predicate)
count
in interface ShortIterable
public boolean anySatisfy(ShortPredicate predicate)
anySatisfy
in interface ShortIterable
public boolean allSatisfy(ShortPredicate predicate)
allSatisfy
in interface ShortIterable
public boolean noneSatisfy(ShortPredicate predicate)
noneSatisfy
in interface ShortIterable
public long sum()
sum
in interface ShortIterable
public boolean containsValue(short value)
containsValue
in interface ShortValuesMap
public void forEachValue(ShortProcedure procedure)
forEachValue
in interface ShortValuesMap
Copyright © 2004–2016. All rights reserved.