|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.man.bioinf.sequence.types.EmptySequenceType
EmptySequenceType.java Created: Tue Aug 1 17:22:00 2000
| Field Summary | |
static EmptySequenceType |
INSTANCE
|
| Method Summary | |
Element |
getElementForInt(int index)
The inverse of the method getIntForElement. |
Element[] |
getElements()
Returns all the elements available in this sequence type. |
static SequenceType |
getInstance()
|
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final EmptySequenceType INSTANCE
| Method Detail |
public static SequenceType getInstance()
public int size()
SequenceType
size in interface SequenceTypepublic int getIntForElement(Element element)
SequenceType
getIntForElement in interface SequenceTypeelement - the element
public Element getElementForInt(int index)
SequenceType
getElementForInt in interface SequenceTypeindex - a value of type 'int'
public Element[] getElements()
SequenceType
getElements in interface SequenceTypepublic String getName()
SequenceType
getName in interface SequenceTypepublic boolean isElement(char element)
SequenceType
isElement in interface SequenceTypeelement - the element
public boolean isElement(Element element)
SequenceType
isElement in interface SequenceTypeelement - the element
public boolean isElement(char[] elements)
SequenceType
isElement in interface SequenceTypeelements - the elements
public boolean isElement(Element[] elements)
SequenceType
isElement in interface SequenceTypeelements - the elements
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||