ByteIterable
, PrimitiveIterable
AbstractByteSet
, AbstractMutableByteValuesMap
, ByteArrayList
, ByteHashBag
public abstract class AbstractByteIterable extends java.lang.Object implements ByteIterable
Constructor | Description |
---|---|
AbstractByteIterable() |
Modifier and Type | Method | Description |
---|---|---|
LazyByteIterable |
asLazy() |
Returns a LazyByteIterable adapter wrapping the source ByteIterable.
|
double |
average() |
|
boolean |
containsAll(byte... source) |
Returns true if the all of the values specified in the source array are contained
in the ByteIterable, and false if they are not.
|
boolean |
containsAll(ByteIterable source) |
Returns true if the all of the values specified in the source ByteIterable are contained
in the ByteIterable, and false if they are not.
|
byte |
maxIfEmpty(byte defaultValue) |
|
double |
median() |
|
byte |
minIfEmpty(byte defaultValue) |
|
MutableByteBag |
toBag() |
Converts the ByteIterable to a new MutableByteBag.
|
MutableByteList |
toList() |
Converts the ByteIterable to a new MutableByteList.
|
MutableByteSet |
toSet() |
Converts the ByteIterable to a new MutableByteSet.
|
byte[] |
toSortedArray() |
|
MutableByteList |
toSortedList() |
|
java.lang.String |
toString() |
Returns a string with the elements of this iterable separated by commas with spaces and
enclosed in square brackets.
|
allSatisfy, anySatisfy, averageIfEmpty, byteIterator, chunk, collect, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, count, detectIfNone, each, flatCollect, forEach, injectInto, max, medianIfEmpty, min, noneSatisfy, reduce, reduceIfEmpty, reject, reject, select, select, sum, summaryStatistics, tap, toArray
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
public java.lang.String toString()
PrimitiveIterable
Assert.assertEquals("[]", IntLists.mutable.empty().toString()); Assert.assertEquals("[1]", IntLists.mutable.with(1).toString()); Assert.assertEquals("[1, 2, 3]", IntLists.mutable.with(1, 2, 3).toString());
toString
in interface PrimitiveIterable
toString
in class java.lang.Object
AbstractCollection.toString()
public byte minIfEmpty(byte defaultValue)
minIfEmpty
in interface ByteIterable
public byte maxIfEmpty(byte defaultValue)
maxIfEmpty
in interface ByteIterable
public double average()
average
in interface ByteIterable
public double median()
median
in interface ByteIterable
public byte[] toSortedArray()
toSortedArray
in interface ByteIterable
public MutableByteList toSortedList()
toSortedList
in interface ByteIterable
public LazyByteIterable asLazy()
ByteIterable
asLazy
in interface ByteIterable
public MutableByteList toList()
ByteIterable
toList
in interface ByteIterable
public MutableByteSet toSet()
ByteIterable
toSet
in interface ByteIterable
public MutableByteBag toBag()
ByteIterable
toBag
in interface ByteIterable
public boolean containsAll(byte... source)
ByteIterable
containsAll
in interface ByteIterable
public boolean containsAll(ByteIterable source)
ByteIterable
containsAll
in interface ByteIterable
Copyright © 2004–2020. All rights reserved.