ByteIterable, PrimitiveIterableAbstractByteSet, AbstractMutableByteValuesMap, ByteArrayList, ByteHashBagpublic 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, toArrayequals, getClass, hashCode, notify, notifyAll, wait, wait, waitappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, sizepublic 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 PrimitiveIterabletoString in class java.lang.ObjectAbstractCollection.toString()public byte minIfEmpty(byte defaultValue)
minIfEmpty in interface ByteIterablepublic byte maxIfEmpty(byte defaultValue)
maxIfEmpty in interface ByteIterablepublic double average()
average in interface ByteIterablepublic double median()
median in interface ByteIterablepublic byte[] toSortedArray()
toSortedArray in interface ByteIterablepublic MutableByteList toSortedList()
toSortedList in interface ByteIterablepublic LazyByteIterable asLazy()
ByteIterableasLazy in interface ByteIterablepublic MutableByteList toList()
ByteIterabletoList in interface ByteIterablepublic MutableByteSet toSet()
ByteIterabletoSet in interface ByteIterablepublic MutableByteBag toBag()
ByteIterabletoBag in interface ByteIterablepublic boolean containsAll(byte... source)
ByteIterablecontainsAll in interface ByteIterablepublic boolean containsAll(ByteIterable source)
ByteIterablecontainsAll in interface ByteIterableCopyright © 2004–2020. All rights reserved.