public abstract class AbstractMutableByteValuesMap extends AbstractByteIterable implements MutableByteValuesMap
Constructor and Description |
---|
AbstractMutableByteValuesMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
allSatisfy(BytePredicate predicate) |
boolean |
anySatisfy(BytePredicate 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(ByteToObjectFunction<? extends V> function) |
boolean |
contains(byte value) |
boolean |
containsAll(ByteIterable source) |
boolean |
containsValue(byte value) |
int |
count(BytePredicate predicate) |
byte |
detectIfNone(BytePredicate predicate,
byte value) |
void |
each(ByteProcedure procedure) |
void |
forEach(ByteProcedure procedure) |
void |
forEachValue(ByteProcedure procedure) |
boolean |
isEmpty()
Returns true if this iterable has zero items.
|
byte |
max() |
byte |
min() |
boolean |
noneSatisfy(BytePredicate predicate) |
boolean |
notEmpty()
The English equivalent of !this.isEmpty()
|
MutableByteBag |
reject(BytePredicate predicate) |
MutableByteBag |
select(BytePredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
long |
sum() |
byte[] |
toArray() |
asLazy, average, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
byteIterator, clear
values
asLazy, average, containsAll, injectInto, maxIfEmpty, median, minIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, makeString, makeString, makeString, toString
public boolean contains(byte value)
contains
in interface ByteIterable
public boolean containsAll(ByteIterable source)
containsAll
in interface ByteIterable
containsAll
in class AbstractByteIterable
public byte max()
max
in interface ByteIterable
public byte min()
min
in interface ByteIterable
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(ByteProcedure procedure)
forEach
in interface ByteIterable
public void each(ByteProcedure procedure)
each
in interface ByteIterable
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 byte[] toArray()
toArray
in interface ByteIterable
public MutableByteBag select(BytePredicate predicate)
select
in interface ByteIterable
select
in interface ByteValuesMap
select
in interface MutableByteValuesMap
public MutableByteBag reject(BytePredicate predicate)
reject
in interface ByteIterable
reject
in interface ByteValuesMap
reject
in interface MutableByteValuesMap
public <V> MutableBag<V> collect(ByteToObjectFunction<? extends V> function)
collect
in interface ByteIterable
collect
in interface ByteValuesMap
collect
in interface MutableByteValuesMap
public byte detectIfNone(BytePredicate predicate, byte value)
detectIfNone
in interface ByteIterable
public int count(BytePredicate predicate)
count
in interface ByteIterable
public boolean anySatisfy(BytePredicate predicate)
anySatisfy
in interface ByteIterable
public boolean allSatisfy(BytePredicate predicate)
allSatisfy
in interface ByteIterable
public boolean noneSatisfy(BytePredicate predicate)
noneSatisfy
in interface ByteIterable
public long sum()
sum
in interface ByteIterable
public boolean containsValue(byte value)
containsValue
in interface ByteValuesMap
public void forEachValue(ByteProcedure procedure)
forEachValue
in interface ByteValuesMap
Copyright © 2004–2016. All rights reserved.