Class AbstractByteIterable
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractByteIterable
- All Implemented Interfaces:
ByteIterable
,PrimitiveIterable
- Direct Known Subclasses:
AbstractByteSet
,AbstractMutableByteValuesMap
,ByteArrayList
,ByteHashBag
public abstract class AbstractByteIterable extends Object implements ByteIterable
This file was automatically generated from template file abstractPrimitiveIterable.stg.
- Since:
- 6.0
-
Constructor Summary
Constructors Constructor Description AbstractByteIterable()
-
Method Summary
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()
String
toString()
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.collections.api.ByteIterable
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, toArray
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size
-
Constructor Details
-
AbstractByteIterable
public AbstractByteIterable()
-
-
Method Details
-
toString
Description copied from interface:PrimitiveIterable
Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.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());
- Specified by:
toString
in interfacePrimitiveIterable
- Overrides:
toString
in classObject
- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)- Specified by:
minIfEmpty
in interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)- Specified by:
maxIfEmpty
in interfaceByteIterable
-
average
public double average()- Specified by:
average
in interfaceByteIterable
-
median
public double median()- Specified by:
median
in interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArray
in interfaceByteIterable
-
toSortedList
- Specified by:
toSortedList
in interfaceByteIterable
-
asLazy
Description copied from interface:ByteIterable
Returns a LazyByteIterable adapter wrapping the source ByteIterable.- Specified by:
asLazy
in interfaceByteIterable
-
toList
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteList.- Specified by:
toList
in interfaceByteIterable
-
toSet
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteSet.- Specified by:
toSet
in interfaceByteIterable
-
toBag
Description copied from interface:ByteIterable
Converts the ByteIterable to a new MutableByteBag.- Specified by:
toBag
in interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)Description copied from interface:ByteIterable
Returns true if the all of the values specified in the source array are contained in the ByteIterable, and false if they are not.- Specified by:
containsAll
in interfaceByteIterable
-
containsAll
Description copied from interface:ByteIterable
Returns true if the all of the values specified in the source ByteIterable are contained in the ByteIterable, and false if they are not.- Specified by:
containsAll
in interfaceByteIterable
-