public class IndexedAttachmentGroupImpl extends AttachmentGroupImpl implements IndexedAttachmentGroup
Constructor and Description |
---|
IndexedAttachmentGroupImpl(Collection<Attachment> attachments)
Construct.
|
Modifier and Type | Method and Description |
---|---|
com.chemaxon.calculations.sc.util.IntListSet |
attachmentIndices()
Atachment indices represented by this collection.
|
Attachment |
byIndex(int index)
Retrieve attachment by its index.
|
int |
maxAttachmentIndex()
Max attachment index value.
|
attachedAtoms, attachmentAtoms, byAtom, isAttachmentAtom, iterator, size, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
attachedAtoms, attachmentAtoms, byAtom, isAttachmentAtom, size, toString, toString
forEach, iterator, spliterator
public IndexedAttachmentGroupImpl(Collection<Attachment> attachments)
attachments
- Attachments to representIllegalArgumentException
- in case of attachment index collision; in case of attachemnt atom index
collisionpublic com.chemaxon.calculations.sc.util.IntListSet attachmentIndices()
IndexedAttachmentGroup
attachmentIndices
in interface IndexedAttachmentGroup
public Attachment byIndex(int index)
IndexedAttachmentGroup
byIndex
in interface IndexedAttachmentGroup
index
- Attachment indexpublic int maxAttachmentIndex()
IndexedAttachmentGroup
maxAttachmentIndex
in interface IndexedAttachmentGroup