IAtomList, java.lang.Iterable<IAtom>, java.util.Collection<IAtom>, java.util.List<IAtom>, java.util.RandomAccesspublic final class AtomPair extends java.util.AbstractList<IAtom> implements IAtomList, java.util.RandomAccess
| Constructor | Description |
|---|---|
AtomPair() |
|
AtomPair(IAtom atom0,
IAtom atom1) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int i,
IAtom iAtom) |
|
boolean |
add(IAtom iAtom) |
|
boolean |
addAll(int i,
java.util.Collection<? extends IAtom> collection) |
|
boolean |
addAll(java.util.Collection<? extends IAtom> collection) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
equals(java.lang.Object obj) |
|
IAtom |
get(int i) |
Returns the i-th atom, with numbering beginning from 0.
|
int |
hashCode() |
|
int |
indexOf(java.lang.Object o) |
|
boolean |
isEmpty() |
|
java.util.Iterator<IAtom> |
iterator() |
|
IAtom |
remove(int i) |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> collection) |
|
boolean |
retainAll(java.util.Collection<?> collection) |
|
IAtom |
set(int i,
IAtom iAtom) |
|
int |
size() |
|
IAtom[] |
toArray() |
|
java.lang.String |
toString() |
lastIndexOf, listIterator, listIterator, removeRange, subListpublic boolean equals(java.lang.Object obj)
public int hashCode()
public IAtom get(int i)
IAtomListget in interface IAtomListget in interface java.util.List<IAtom>get in class java.util.AbstractList<IAtom>i - the index of the desired atom in the list
if i is greater than count-1, throws an IllegalArgumentException.public void add(int i,
IAtom iAtom)
public IAtom remove(int i)
public int indexOf(java.lang.Object o)
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<IAtom> iterator()
public IAtom[] toArray()
public boolean add(IAtom iAtom)
public boolean remove(java.lang.Object o)
public boolean addAll(java.util.Collection<? extends IAtom> collection)
public boolean addAll(int i,
java.util.Collection<? extends IAtom> 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<IAtom>