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 LazyByteIterableasLazy()Returns a LazyByteIterable adapter wrapping the source ByteIterable.doubleaverage()booleancontainsAll(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.booleancontainsAll(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.bytemaxIfEmpty(byte defaultValue)doublemedian()byteminIfEmpty(byte defaultValue)MutableByteBagtoBag()Converts the ByteIterable to a new MutableByteBag.MutableByteListtoList()Converts the ByteIterable to a new MutableByteList.MutableByteSettoSet()Converts the ByteIterable to a new MutableByteSet.byte[]toSortedArray()MutableByteListtoSortedList()StringtoString()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, waitMethods 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, toArrayMethods 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:PrimitiveIterableReturns 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:
toStringin interfacePrimitiveIterable- Overrides:
toStringin classObject- Returns:
- a string representation of this PrimitiveIterable
- See Also:
AbstractCollection.toString()
-
minIfEmpty
public byte minIfEmpty(byte defaultValue)- Specified by:
minIfEmptyin interfaceByteIterable
-
maxIfEmpty
public byte maxIfEmpty(byte defaultValue)- Specified by:
maxIfEmptyin interfaceByteIterable
-
average
public double average()- Specified by:
averagein interfaceByteIterable
-
median
public double median()- Specified by:
medianin interfaceByteIterable
-
toSortedArray
public byte[] toSortedArray()- Specified by:
toSortedArrayin interfaceByteIterable
-
toSortedList
- Specified by:
toSortedListin interfaceByteIterable
-
asLazy
Description copied from interface:ByteIterableReturns a LazyByteIterable adapter wrapping the source ByteIterable.- Specified by:
asLazyin interfaceByteIterable
-
toList
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteList.- Specified by:
toListin interfaceByteIterable
-
toSet
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteSet.- Specified by:
toSetin interfaceByteIterable
-
toBag
Description copied from interface:ByteIterableConverts the ByteIterable to a new MutableByteBag.- Specified by:
toBagin interfaceByteIterable
-
containsAll
public boolean containsAll(byte... source)Description copied from interface:ByteIterableReturns 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:
containsAllin interfaceByteIterable
-
containsAll
Description copied from interface:ByteIterableReturns 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:
containsAllin interfaceByteIterable
-