Package org.dashj.bls
Class Uint8Vector
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Short>
-
- org.dashj.bls.Uint8Vector
-
- All Implemented Interfaces:
Iterable<Short>,Collection<Short>,List<Short>,RandomAccess
- Direct Known Subclasses:
ByteVector
public class Uint8Vector extends AbstractList<Short> implements RandomAccess
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanswigCMemOwn-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Modifier Constructor Description Uint8Vector()Uint8Vector(int count, short value)protectedUint8Vector(long cPtr, boolean cMemoryOwn)Uint8Vector(short[] initialElements)Uint8Vector(Iterable<Short> initialElements)Uint8Vector(Uint8Vector other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Short e)booleanadd(Short e)intcapacity()voidclear()voiddelete()protected voidfinalize()Shortget(int index)protected static longgetCPtr(Uint8Vector obj)booleanisEmpty()Shortremove(int index)protected voidremoveRange(int fromIndex, int toIndex)voidreserve(int n)Shortset(int index, Short e)intsize()-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
-
-
-
Constructor Detail
-
Uint8Vector
protected Uint8Vector(long cPtr, boolean cMemoryOwn)
-
Uint8Vector
public Uint8Vector(short[] initialElements)
-
Uint8Vector
public Uint8Vector()
-
Uint8Vector
public Uint8Vector(Uint8Vector other)
-
Uint8Vector
public Uint8Vector(int count, short value)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(Uint8Vector obj)
-
delete
public void delete()
-
get
public Short get(int index)
-
add
public boolean add(Short e)
- Specified by:
addin interfaceCollection<Short>- Specified by:
addin interfaceList<Short>- Overrides:
addin classAbstractList<Short>
-
add
public void add(int index, Short e)
-
remove
public Short remove(int index)
-
removeRange
protected void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classAbstractList<Short>
-
size
public int size()
- Specified by:
sizein interfaceCollection<Short>- Specified by:
sizein interfaceList<Short>- Specified by:
sizein classAbstractCollection<Short>
-
capacity
public int capacity()
-
reserve
public void reserve(int n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<Short>- Specified by:
isEmptyin interfaceList<Short>- Overrides:
isEmptyin classAbstractCollection<Short>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<Short>- Specified by:
clearin interfaceList<Short>- Overrides:
clearin classAbstractList<Short>
-
-