public class AttachmentGroupImpl extends Object implements AttachmentGroup
| Constructor and Description |
|---|
AttachmentGroupImpl(Collection<Attachment> attachments)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
com.chemaxon.calculations.sc.util.IntListSet |
attachedAtoms()
Indices of attached atoms.
|
com.chemaxon.calculations.sc.util.IntListSet |
attachmentAtoms()
Indices of attachment pseudo atoms.
|
Attachment |
byAtom(int index)
Retrieve attachment by its pseudo atom index.
|
boolean |
isAttachmentAtom(int index)
Check if given atom index denotes an attachment atom.
|
Iterator<Attachment> |
iterator() |
int |
size()
Size of this attachment group.
|
String |
toString() |
String |
toString(boolean multiline,
String prefix)
Create String representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic AttachmentGroupImpl(Collection<Attachment> attachments)
attachments - Attachments to representIllegalArgumentException - in case of attachment atom index collisionpublic com.chemaxon.calculations.sc.util.IntListSet attachmentAtoms()
AttachmentGroupattachmentAtoms in interface AttachmentGrouppublic com.chemaxon.calculations.sc.util.IntListSet attachedAtoms()
AttachmentGroupattachedAtoms in interface AttachmentGrouppublic Attachment byAtom(int index)
AttachmentGroupbyAtom in interface AttachmentGroupindex - Attachment pseudo atom indexpublic Iterator<Attachment> iterator()
iterator in interface Iterable<Attachment>public String toString(boolean multiline, String prefix)
AttachmentGrouptoString in interface AttachmentGroupmultiline - Print multiline Stringprefix - Prefix for each linepublic String toString()
toString in interface AttachmentGrouptoString in class Objectpublic boolean isAttachmentAtom(int index)
AttachmentGroupisAttachmentAtom in interface AttachmentGroupindex - Atom indexpublic int size()
AttachmentGroupsize in interface AttachmentGroup