Package org.dashj.bls
Class G1ElementVector
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<G1Element>
-
- org.dashj.bls.G1ElementVector
-
- All Implemented Interfaces:
Iterable<G1Element>,Collection<G1Element>,List<G1Element>,RandomAccess
- Direct Known Subclasses:
G1ElementList
public class G1ElementVector extends AbstractList<G1Element> 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 G1ElementVector()G1ElementVector(int count, G1Element value)protectedG1ElementVector(long cPtr, boolean cMemoryOwn)G1ElementVector(Iterable<G1Element> initialElements)G1ElementVector(G1Element[] initialElements)G1ElementVector(G1ElementVector other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, G1Element e)booleanadd(G1Element e)intcapacity()voidclear()voiddelete()protected voidfinalize()G1Elementget(int index)protected static longgetCPtr(G1ElementVector obj)booleanisEmpty()G1Elementremove(int index)protected voidremoveRange(int fromIndex, int toIndex)voidreserve(int n)G1Elementset(int index, G1Element 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
-
G1ElementVector
protected G1ElementVector(long cPtr, boolean cMemoryOwn)
-
G1ElementVector
public G1ElementVector(G1Element[] initialElements)
-
G1ElementVector
public G1ElementVector()
-
G1ElementVector
public G1ElementVector(G1ElementVector other)
-
G1ElementVector
public G1ElementVector(int count, G1Element value)
-
-
Method Detail
-
getCPtr
protected static long getCPtr(G1ElementVector obj)
-
delete
public void delete()
-
get
public G1Element get(int index)
-
add
public boolean add(G1Element e)
- Specified by:
addin interfaceCollection<G1Element>- Specified by:
addin interfaceList<G1Element>- Overrides:
addin classAbstractList<G1Element>
-
add
public void add(int index, G1Element e)
-
remove
public G1Element remove(int index)
-
removeRange
protected void removeRange(int fromIndex, int toIndex)- Overrides:
removeRangein classAbstractList<G1Element>
-
size
public int size()
- Specified by:
sizein interfaceCollection<G1Element>- Specified by:
sizein interfaceList<G1Element>- Specified by:
sizein classAbstractCollection<G1Element>
-
capacity
public int capacity()
-
reserve
public void reserve(int n)
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceCollection<G1Element>- Specified by:
isEmptyin interfaceList<G1Element>- Overrides:
isEmptyin classAbstractCollection<G1Element>
-
clear
public void clear()
- Specified by:
clearin interfaceCollection<G1Element>- Specified by:
clearin interfaceList<G1Element>- Overrides:
clearin classAbstractList<G1Element>
-
-