Package chemaxon.struc
Class IteratorFactory.BondIterator
java.lang.Object
chemaxon.struc.IteratorFactory.BondIterator
- Enclosing class:
IteratorFactory
@Deprecated(forRemoval=true)
@SubjectToRemoval(date=JUL_01_2027)
public class IteratorFactory.BondIterator
extends Object
implements Iterator<MolBond>
Deprecated, for removal: This API element is subject to removal in a future version.
The
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.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 Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs an iterator to process the bonds of the specified molecule in this factory according to the bond related behavior of this factory. -
Method Summary
Modifier and TypeMethodDescriptionprotected MolBondgetBond(int index) Deprecated, for removal: This API element is subject to removal in a future version.Returns a bond of a specified index.booleanhasNext()Deprecated, for removal: This API element is subject to removal in a future version.Decides whether the iteration has more element.next()Deprecated, for removal: This API element is subject to removal in a future version.Returns the next bond in the iteration.voidremove()Deprecated, for removal: This API element is subject to removal in a future version.Removes the next bond in the iteration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
secondaryBonds
Deprecated, for removal: This API element is subject to removal in a future version.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). These secondary bonds are not added to the molecule of the factory, so do not use Molecule.indexOf for the secondary bonds! In the future, secondary bonds may be implemented for other types of connections too.
-
-
Constructor Details
-
BondIterator
public BondIterator()Deprecated, for removal: This API element is subject to removal in a future version.Constructs an iterator to process the bonds of the specified molecule in this factory according to the bond related behavior of this factory.
-
-
Method Details
-
getBond
Deprecated, for removal: This API element is subject to removal in a future version.Returns a bond of a specified index.- Parameters:
index- the specified index of the bond- Returns:
- the bond of the specified index
-
remove
public void remove()Deprecated, for removal: This API element is subject to removal in a future version.Removes the next bond in the iteration. This method can be called only once per call tonext.- Specified by:
removein interfaceIterator<MolBond>- Throws:
IllegalStateException- if thenextmethod has not yet been called, or the remove method has already been called after the last call to thenextmethod.
-
hasNext
public boolean hasNext()Deprecated, for removal: This API element is subject to removal in a future version.Decides whether the iteration has more element. -
next
Deprecated, for removal: This API element is subject to removal in a future version.Returns the next bond in the iteration.- Specified by:
nextin interfaceIterator<MolBond>- Returns:
- the next bond in the iteration
- Throws:
NoSuchElementException
-