- All Superinterfaces:
ByteSequencedCollection,Collection<Byte>,Iterable<Byte>,List<Byte>,SequencedCollection<Byte>
- All Known Implementing Classes:
ByteArrayList
Interface for a
List with a primitive integer data elements.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanvoidaddAsByte(byte e) voidaddAsByte(int index, byte e) default voiddefault voidaddFirstAsByte(byte e) default voiddefault voidaddLastAsByte(byte e) bytegetAsByte(int index) default BytegetFirst()default BytegetLast()default intintindexOfAsByte(byte o) default booleanisEmpty()default intintlastIndexOfAsByte(byte o) byteremoveAtAsByte(int index) Removes the item at the specified index from this list.default Bytedefault bytedefault ByteMethods inherited from interface org.jhotdraw8.collection.primitive.ByteSequencedCollection
addLastAllAsByte, addLastAllAsByte, getFirstAsByte, getLastAsByte, removeLastAsByteMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
add
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<Byte>
-
lastIndexOfAsByte
int lastIndexOfAsByte(byte o) - See Also:
-
indexOfAsByte
int indexOfAsByte(byte o) - See Also:
-
addAsByte
void addAsByte(byte e) - See Also:
-
addAsByte
void addAsByte(int index, byte e) - See Also:
-
getAsByte
byte getAsByte(int index) - See Also:
-
addFirstAsByte
default void addFirstAsByte(byte e) - Specified by:
addFirstAsBytein interfaceByteSequencedCollection
-
addLastAsByte
default void addLastAsByte(byte e) - Specified by:
addLastAsBytein interfaceByteSequencedCollection
-
removeAtAsByte
byte removeAtAsByte(int index) Removes the item at the specified index from this list.- Parameters:
index- an index- Returns:
- the removed item
-
removeFirstAsByte
default byte removeFirstAsByte()- Specified by:
removeFirstAsBytein interfaceByteSequencedCollection
-
isEmpty
default boolean isEmpty() -
addFirst
- Specified by:
addFirstin interfaceByteSequencedCollection- Specified by:
addFirstin interfaceList<Byte>- Specified by:
addFirstin interfaceSequencedCollection<Byte>
-
addLast
- Specified by:
addLastin interfaceByteSequencedCollection- Specified by:
addLastin interfaceList<Byte>- Specified by:
addLastin interfaceSequencedCollection<Byte>
-
getFirst
- Specified by:
getFirstin interfaceByteSequencedCollection- Specified by:
getFirstin interfaceList<Byte>- Specified by:
getFirstin interfaceSequencedCollection<Byte>
-
getLast
- Specified by:
getLastin interfaceByteSequencedCollection- Specified by:
getLastin interfaceList<Byte>- Specified by:
getLastin interfaceSequencedCollection<Byte>
-
removeFirst
- Specified by:
removeFirstin interfaceByteSequencedCollection- Specified by:
removeFirstin interfaceList<Byte>- Specified by:
removeFirstin interfaceSequencedCollection<Byte>
-
removeLast
- Specified by:
removeLastin interfaceByteSequencedCollection- Specified by:
removeLastin interfaceList<Byte>- Specified by:
removeLastin interfaceSequencedCollection<Byte>
-