public class IteratorFactory.BondIterator extends Object implements Iterator<MolBond>
BondIterator class provides an iterator to process the
bonds of the specified molecule in this factory according to the bond
related behavior of this factory.| Modifier and Type | Field and Description |
|---|---|
protected List<MolBond> |
secondaryBonds
Secondary bonds that replace a coordinate bond to the multicenter
with coordinate bonds from the metal to the represented atoms (in the
MulticenterSgroup of the multicenter).
|
| Constructor and Description |
|---|
IteratorFactory.BondIterator()
Constructs an iterator to process the bonds of the specified molecule
in this factory according to the bond related behavior of this
factory.
|
| Modifier and Type | Method and Description |
|---|---|
protected MolBond |
getBond(int index)
Returns a bond of a specified index.
|
boolean |
hasNext()
Decides whether the iteration has more element.
|
MolBond |
next()
Returns the next bond in the iteration.
|
MolBond |
nextBond()
Deprecated.
As of Marvin 6.2, Use
next() instead. |
void |
remove()
Removes the next bond in the iteration.
|
protected List<MolBond> secondaryBonds
public IteratorFactory.BondIterator()
protected MolBond getBond(int index)
index - the specified index of the bondpublic void remove()
next.remove in interface Iterator<MolBond>IllegalStateException - if the next method has not yet been called,
or the remove method has already been called after the
last call to the next method.public boolean hasNext()
@Deprecated public MolBond nextBond()
next() instead.public MolBond next()
next in interface Iterator<MolBond>NoSuchElementException