org.expasy.jpl.commons.collection.symbol.seq
Interface Sequence<T>

All Known Subinterfaces:
SymbolSequence<T>
All Known Implementing Classes:
SymbolSequenceImpl

public interface Sequence<T>

This interface is the generic version of CharSequence for any object.

Version:
1.0

Method Summary
 int length()
           
 Sequence<T> subSequence(int start, int end)
           
 T valueAt(int index)
           
 

Method Detail

valueAt

T valueAt(int index)
Returns:
the T-typed value at the specified sequence index.

subSequence

Sequence<T> subSequence(int start,
                        int end)
Returns:
a new Sequence that is a subsequence of this sequence.

length

int length()
Returns:
the length of the T sequence.


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.