|
||||||||||
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 SequenceType
public int getIntForElement(Element element)
SequenceType
getIntForElement
in interface SequenceType
element
- the element
public Element getElementForInt(int index)
SequenceType
getElementForInt
in interface SequenceType
index
- a value of type 'int'
public Element[] getElements()
SequenceType
getElements
in interface SequenceType
public String getName()
SequenceType
getName
in interface SequenceType
public boolean isElement(char element)
SequenceType
isElement
in interface SequenceType
element
- the element
public boolean isElement(Element element)
SequenceType
isElement
in interface SequenceType
element
- the element
public boolean isElement(char[] elements)
SequenceType
isElement
in interface SequenceType
elements
- the elements
public boolean isElement(Element[] elements)
SequenceType
isElement
in interface SequenceType
elements
- the elements
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |