org.expasy.jpl.commons.collection.symbol.seq
Interface SymbolSequence<T>
- Type Parameters:
T - the data wrapped around the symbol.
- All Superinterfaces:
- Sequence<T>
- All Known Implementing Classes:
- SymbolSequenceImpl
public interface SymbolSequence<T>
- extends Sequence<T>
The SymbolSequence interface should be implemented by any concrete
class that deals with sequence of symbols.
- Version:
- 1.0
- Author:
- nikitin
isAmbiguous
boolean isAmbiguous()
- Returns:
- true if the sequence contains ambiguous symbols. An ambiguous
symbol maps more than one T-data object.
getSymbolType
Symbol.SymbolType<T> getSymbolType()
- Returns:
- the type of symbol
getSymbolAt
Symbol<T> getSymbolAt(int i)
- Returns:
- the symbol at index i
charAt
char charAt(int i)
- Returns:
- the symbol character at index i
toSymbolString
String toSymbolString()
- Returns:
- the symbol string representation
Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.