Class ByteArrayList.SubList
- All Implemented Interfaces:
ByteCollection, ByteIterable, ByteList, ByteStack, Stack<Byte>, Serializable, Comparable<List<? extends Byte>>, Iterable<Byte>, Collection<Byte>, List<Byte>, RandomAccess, SequencedCollection<Byte>
- Enclosing class:
ByteArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractByteList
AbstractByteList.ByteRandomAccessSubList, AbstractByteList.ByteSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanbytegetByte(int i) Returns the element at the specified position in this list.listIterator(int index) Returns a type-specific list iterator on the list starting at a given index.Returns a type-specific spliterator on the elements of this collection.Methods inherited from class AbstractByteList.ByteRandomAccessSubList
subListMethods inherited from class AbstractByteList.ByteSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeByte, removeElements, set, setElements, sizeMethods inherited from class AbstractByteList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekByte, popByte, push, size, toArray, toByteArray, topByte, toStringMethods inherited from class AbstractByteCollection
add, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toByteArrayMethods inherited from class AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface ByteCollection
containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toByteArrayMethods inherited from interface ByteIterable
forEach, forEachMethods inherited from interface ByteList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSortMethods inherited from interface Collection
toArrayMethods inherited from interface List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArray
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getByte
public byte getByte(int i) Description copied from interface:ByteListReturns the element at the specified position in this list.- Specified by:
getBytein interfaceByteList- Overrides:
getBytein classAbstractByteList.ByteSubList- See Also:
-
listIterator
Description copied from class:AbstractByteListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceByteList- Specified by:
listIteratorin interfaceList<Byte>- Overrides:
listIteratorin classAbstractByteList.ByteSubList- See Also:
-
spliterator
Description copied from interface:ByteCollectionReturns a type-specific spliterator on the elements of this collection.See
Collection.spliterator()for more documentation on the requirements of the returned spliterator.- Specified by:
spliteratorin interfaceByteCollection- Specified by:
spliteratorin interfaceByteIterable- Specified by:
spliteratorin interfaceByteList- Specified by:
spliteratorin interfaceCollection<Byte>- Specified by:
spliteratorin interfaceIterable<Byte>- Specified by:
spliteratorin interfaceList<Byte>- Overrides:
spliteratorin classAbstractByteList.ByteSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Byte>- Specified by:
equalsin interfaceList<Byte>- Overrides:
equalsin classAbstractByteList
-
compareTo
Description copied from class:AbstractByteListCompares this list to another object. If the argument is aList, this method performs a lexicographical comparison; otherwise, it throws aClassCastException.- Specified by:
compareToin interfaceComparable<List<? extends Byte>>- Overrides:
compareToin classAbstractByteList- Parameters:
l- a list.- Returns:
- if the argument is a
List, a negative integer, zero, or a positive integer as this list is lexicographically less than, equal to, or greater than the argument.
-