Package org.biojava.bio.seq.io
Class SymbolListCharSequence
- java.lang.Object
-
- org.biojava.bio.seq.io.SymbolListCharSequence
-
- All Implemented Interfaces:
CharSequence
public class SymbolListCharSequence extends Object implements CharSequence
SymbolListCharSequenceis aCharSequenceimplementation which wraps aSymbolList. It is present primarily to support regular expression matching overSymbolLists as it avoids creating a copy.- Since:
- 1.3
- Author:
- Keith James, Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SymbolListCharSequence(SymbolList syms)Creates a newSymbolListCharSequencewrapping aSymbolList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)intlength()CharSequencesubSequence(int start, int end)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Constructor Detail
-
SymbolListCharSequence
public SymbolListCharSequence(SymbolList syms)
Creates a newSymbolListCharSequencewrapping aSymbolList.- Parameters:
syms- aSymbolList.
-
-
Method Detail
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequencein interfaceCharSequence
-
-