IMoleculeList
, java.lang.Iterable<IMolecule>
, java.util.Collection<IMolecule>
, java.util.List<IMolecule>
, java.util.RandomAccess
public final class MoleculePair extends java.util.AbstractList<IMolecule> implements IMoleculeList, java.util.RandomAccess
Constructor | Description |
---|---|
MoleculePair() |
|
MoleculePair(IMolecule mol0,
IMolecule mol1) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int i,
IMolecule iAtom) |
|
boolean |
add(IMolecule iAtom) |
|
boolean |
addAll(int i,
java.util.Collection<? extends IMolecule> collection) |
|
boolean |
addAll(java.util.Collection<? extends IMolecule> collection) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
equals(java.lang.Object obj) |
|
IMolecule |
get(int i) |
Returns the i-th molecule, with numbering beginning from 0.
|
int |
hashCode() |
|
int |
indexOf(java.lang.Object o) |
|
boolean |
isEmpty() |
|
java.util.Iterator<IMolecule> |
iterator() |
|
IMolecule |
remove(int i) |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> collection) |
|
boolean |
retainAll(java.util.Collection<?> collection) |
|
IMolecule |
set(int i,
IMolecule iAtom) |
|
int |
size() |
|
IMolecule[] |
toArray() |
|
java.lang.String |
toString() |
lastIndexOf, listIterator, listIterator, removeRange, subList
public boolean equals(java.lang.Object obj)
public int hashCode()
public IMolecule get(int i)
IMoleculeList
get
in interface IMoleculeList
get
in interface java.util.List<IMolecule>
get
in class java.util.AbstractList<IMolecule>
public void add(int i, IMolecule iAtom)
public IMolecule remove(int i)
public int indexOf(java.lang.Object o)
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 boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<IMolecule> iterator()
public IMolecule[] toArray()
public boolean add(IMolecule iAtom)
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends IMolecule> collection)
public boolean addAll(int i, java.util.Collection<? extends IMolecule> collection)
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
public void clear()
public java.lang.String toString()
toString
in class java.util.AbstractCollection<IMolecule>