|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.collection.symbol.seq.SymbolSequenceImpl<E>
E - the element type.public final class SymbolSequenceImpl<E>
A sequence of symbol letters defined by an alphabet.
| Nested Class Summary | |
|---|---|
static class |
SymbolSequenceImpl.Builder<E>
This builder builds an instance of JPLAASequence given a numerous number of possible parameters. |
| Constructor Summary | |
|---|---|
|
SymbolSequenceImpl()
for serialization only |
protected |
SymbolSequenceImpl(SymbolSequenceImpl.Builder<E> builder)
The only constructor that build an instance of JPLAASequence. |
| Method Summary | ||
|---|---|---|
char |
charAt(int i)
|
|
SymbolSequenceImpl<E> |
clone()
|
|
boolean |
equals(Object obj)
Return true if 2 aa sequences are identical |
|
SymbolSequenceImpl.Builder<E> |
getBuilder()
|
|
static
|
getSequencePattern(Symbol.SymbolType<E> type)
|
|
Symbol<E> |
getSymbolAt(int i)
Returns the symbol character at position i. |
|
Symbol.SymbolType<E> |
getSymbolType()
|
|
int |
hashCode()
Same length JPLAASequence have the same hash code. |
|
boolean |
isAmbiguous()
|
|
int |
length()
|
|
SymbolSequenceImpl<E> |
subSequence(int start,
int end)
Warning: [start, end[ |
|
String |
toString()
|
|
String |
toSymbolString()
|
|
E |
valueAt(int i)
|
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolSequenceImpl()
protected SymbolSequenceImpl(SymbolSequenceImpl.Builder<E> builder)
throws ParseException
builder - the builder needed to build the instance.
ParseException
ParseException - if the sequence string is not well formatted.
JPLAAByteUndefinedException| Method Detail |
|---|
public static <E> Pattern getSequencePattern(Symbol.SymbolType<E> type)
public SymbolSequenceImpl.Builder<E> getBuilder()
public SymbolSequenceImpl<E> clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic final int length()
length in interface Sequence<E>public boolean isAmbiguous()
isAmbiguous in interface SymbolSequence<E>public final Symbol.SymbolType<E> getSymbolType()
getSymbolType in interface SymbolSequence<E>public final Symbol<E> getSymbolAt(int i)
getSymbolAt in interface SymbolSequence<E>SequenceOutOfBoundsException - if i is out of byte array bounds.public final E valueAt(int i)
valueAt in interface Sequence<E>T-typed value at the specified sequence index.public final char charAt(int i)
charAt in interface SymbolSequence<E>
public SymbolSequenceImpl<E> subSequence(int start,
int end)
subSequence in interface Sequence<E>public final String toSymbolString()
toSymbolString in interface SymbolSequence<E>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||