IMoleculeList
, java.lang.Iterable<IMolecule>
, java.util.Collection<IMolecule>
, java.util.List<IMolecule>
, java.util.RandomAccess
public final class MoleculeArrayList extends java.util.AbstractList<IMolecule> implements IMoleculeList, java.util.RandomAccess
Constructor | Description |
---|---|
MoleculeArrayList() |
|
MoleculeArrayList(int initialSize) |
|
MoleculeArrayList(java.util.Collection<IMolecule> collection) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(IMolecule molecule) |
|
boolean |
addAll(java.util.Collection<? extends IMolecule> moleculeList) |
|
void |
clear() |
|
void |
ensureCapacity(int minCapacity) |
|
IMolecule |
get(int index) |
Returns the i-th molecule, with numbering beginning from 0.
|
static float |
getSizeIncreaseRatio() |
|
float |
getTrimThreshold() |
|
int |
indexOf(IMolecule elem) |
|
boolean |
isEmpty() |
|
void |
maybeTrimToSize() |
|
IMolecule |
remove(int index) |
|
IMolecule |
removeAndReplace(int index) |
|
IMolecule |
set(int index,
IMolecule element) |
|
void |
setTrimThreshold(float newTrimThreshold) |
|
int |
size() |
|
int |
sizeOfArray() |
|
IMolecule[] |
toArray() |
|
IMolecule[] |
toMoleculeArray() |
|
void |
trimToSize() |
contains, containsAll, remove, removeAll, retainAll, toArray, toString
add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
public MoleculeArrayList()
public MoleculeArrayList(int initialSize)
public MoleculeArrayList(java.util.Collection<IMolecule> collection)
public static float getSizeIncreaseRatio()
public void trimToSize()
public void maybeTrimToSize()
public float getTrimThreshold()
public void setTrimThreshold(float newTrimThreshold)
public void ensureCapacity(int minCapacity)
public boolean isEmpty()
public IMolecule[] toArray()
public void clear()
public int sizeOfArray()
public int indexOf(IMolecule elem)
public IMolecule[] toMoleculeArray()
public boolean add(IMolecule molecule)
public boolean addAll(java.util.Collection<? extends IMolecule> moleculeList)
public IMolecule remove(int index)
public IMolecule removeAndReplace(int index)
public int size()
size
in interface java.util.Collection<IMolecule>
size
in interface IMoleculeList
size
in interface java.util.List<IMolecule>
size
in class java.util.AbstractCollection<IMolecule>
public IMolecule get(int index)
IMoleculeList
get
in interface IMoleculeList
get
in interface java.util.List<IMolecule>
get
in class java.util.AbstractList<IMolecule>