MutableShortValuesMap, ShortValuesMap, PrimitiveIterable, ShortIterableByteShortHashMap, CharShortHashMap, DoubleShortHashMap, FloatShortHashMap, IntShortHashMap, LongShortHashMap, ShortShortHashMappublic abstract class AbstractMutableShortValuesMap extends AbstractShortIterable implements MutableShortValuesMap
| Constructor | Description |
|---|---|
AbstractMutableShortValuesMap() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
allSatisfy(ShortPredicate predicate) |
Returns true if all of the elements in the ShortIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
anySatisfy(ShortPredicate predicate) |
Returns true if any of the elements in the ShortIterable 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. |
RichIterable<ShortIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
<V> MutableBag<V> |
collect(ShortToObjectFunction<? extends V> function) |
Returns a new collection with the results of applying the specified function on each element of the source
collection.
|
boolean |
contains(short value) |
Returns true if the value is contained in the ShortIterable, and false if it is not.
|
boolean |
containsAll(ShortIterable source) |
Returns true if the all of the values specified in the source ShortIterable are contained
in the ShortIterable, and false if they are not.
|
boolean |
containsValue(short value) |
|
int |
count(ShortPredicate predicate) |
Returns a count of the number of elements in the ShortIterable that return true for the
specified predicate.
|
short |
detectIfNone(ShortPredicate predicate,
short value) |
|
void |
each(ShortProcedure procedure) |
A synonym for forEach.
|
void |
forEach(ShortProcedure procedure) |
Applies the ShortProcedure to each element in the ShortIterable.
|
void |
forEachValue(ShortProcedure procedure) |
|
boolean |
isEmpty() |
Returns true if this iterable has zero items.
|
short |
max() |
|
short |
min() |
|
boolean |
noneSatisfy(ShortPredicate predicate) |
Returns true if none of the elements in the ShortIterable return true for the
specified predicate, otherwise returns false.
|
boolean |
notEmpty() |
The English equivalent of !this.isEmpty()
|
MutableShortBag |
reject(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return false for the specified predicate.
|
MutableShortBag |
select(ShortPredicate predicate) |
Returns a new ShortIterable with all of the elements in the ShortIterable that
return true for the specified predicate.
|
int |
size() |
Returns the number of items in this iterable.
|
long |
sum() |
|
short[] |
toArray() |
Converts the ShortIterable to a primitive short array.
|
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringclear, shortIteratorequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, makeString, makeString, makeString, toStringasLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, flatCollect, injectInto, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedListtap, valuespublic boolean contains(short value)
ShortIterablecontains in interface ShortIterablepublic boolean containsAll(ShortIterable source)
ShortIterablecontainsAll in interface ShortIterablecontainsAll in class AbstractShortIterablepublic short max()
max in interface ShortIterablepublic short min()
min in interface ShortIterablepublic int size()
PrimitiveIterablesize in interface PrimitiveIterablepublic boolean isEmpty()
PrimitiveIterableisEmpty in interface PrimitiveIterablepublic boolean notEmpty()
PrimitiveIterablenotEmpty in interface PrimitiveIterablepublic void forEach(ShortProcedure procedure)
ShortIterableforEach in interface ShortIterablepublic void each(ShortProcedure procedure)
ShortIterableeach in interface ShortIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface PrimitiveIterablepublic short[] toArray()
ShortIterabletoArray in interface ShortIterablepublic MutableShortBag select(ShortPredicate predicate)
ShortIterableselect in interface MutableShortValuesMapselect in interface ShortIterableselect in interface ShortValuesMappublic MutableShortBag reject(ShortPredicate predicate)
ShortIterablereject in interface MutableShortValuesMapreject in interface ShortIterablereject in interface ShortValuesMappublic <V> MutableBag<V> collect(ShortToObjectFunction<? extends V> function)
ShortIterablecollect in interface MutableShortValuesMapcollect in interface ShortIterablecollect in interface ShortValuesMappublic short detectIfNone(ShortPredicate predicate, short value)
detectIfNone in interface ShortIterablepublic int count(ShortPredicate predicate)
ShortIterablecount in interface ShortIterablepublic boolean anySatisfy(ShortPredicate predicate)
ShortIterableanySatisfy in interface ShortIterablepublic boolean allSatisfy(ShortPredicate predicate)
ShortIterableallSatisfy in interface ShortIterablepublic boolean noneSatisfy(ShortPredicate predicate)
ShortIterablenoneSatisfy in interface ShortIterablepublic RichIterable<ShortIterable> chunk(int size)
ShortIterablechunk in interface ShortIterablesize - the number of elements per chunkRichIterable containing ShortIterables of size size, except the last will be
truncated if the elements don't divide evenly.public long sum()
sum in interface ShortIterablepublic boolean containsValue(short value)
containsValue in interface ShortValuesMappublic void forEachValue(ShortProcedure procedure)
forEachValue in interface ShortValuesMapCopyright © 2004–2020. All rights reserved.