|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
SequenceType.java An interface to represent the type of a sequence (e.g: Protein, DNA). Created: Fri Feb 25 20:12:45 2000
Method Summary | |
Element |
getElementForInt(int index)
The inverse of the method getIntForElement. |
Element[] |
getElements()
Returns all the elements available in this sequence type. |
int |
getIntForElement(Element element)
This method is present as a performance enhancement. |
String |
getName()
Returns the human readable form of this sequence type. |
boolean |
isElement(char element)
Returns a boolean as to whether the specified element is part of this sequence type. |
boolean |
isElement(char[] elements)
Returns a boolean as to whether the specified elements are part of this sequence type. |
boolean |
isElement(Element element)
Returns a boolean as to whether the specified element is part of this sequence type. |
boolean |
isElement(Element[] elements)
Returns a boolean as to whether the specified elements are part of this sequence type. |
int |
size()
Returns the number of elements in this sequence type. |
Method Detail |
public int size()
public int getIntForElement(Element element)
element
- the element
public Element getElementForInt(int index)
index
- a value of type 'int'
public Element[] getElements()
public String getName()
public boolean isElement(char element)
element
- the element
public boolean isElement(Element element)
element
- the element
public boolean isElement(char[] elements)
elements
- the elements
public boolean isElement(Element[] elements)
elements
- the elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |