@PublicAPI public class PSymbols extends java.lang.Object
Constructor and Description |
---|
PSymbols(java.util.Collection psymbols)
Constructor.
|
PSymbols(java.lang.String[] psymbols)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex(java.lang.String symbol)
Gets the index associated of the specified symbol.
|
java.lang.String |
getSymbol(int i)
Gets the symbol at the given index.
|
int |
getSymbolCount()
returns the number of symbols
|
java.lang.String |
toString() |
public PSymbols(java.lang.String[] psymbols)
psymbols
- is the symbol arraypublic PSymbols(java.util.Collection psymbols)
psymbols
- is the symbol collectionpublic int getSymbolCount()
public java.lang.String getSymbol(int i)
i
- is the symbol indexjava.lang.IllegalArgumentException
- if the symbol index is out-of-rangepublic int getIndex(java.lang.String symbol)
symbol
- pharmacophore property (feature) symboljava.lang.IllegalArgumentException
- if the symbol is not foundpublic java.lang.String toString()
toString
in class java.lang.Object