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

Method Summary
 char charAt(int i)
           
 Symbol<T> getSymbolAt(int i)
           
 Symbol.SymbolType<T> getSymbolType()
           
 boolean isAmbiguous()
           
 String toSymbolString()
           
 
Methods inherited from interface org.expasy.jpl.commons.collection.symbol.seq.Sequence
length, subSequence, valueAt
 

Method Detail

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.