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
SymbolListCharSequence
is aCharSequence
implementation which wraps aSymbolList
. It is present primarily to support regular expression matching overSymbolList
s as it avoids creating a copy.- Since:
- 1.3
- Author:
- Keith James, Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SymbolListCharSequence(SymbolList syms)
Creates a newSymbolListCharSequence
wrapping aSymbolList
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
length()
CharSequence
subSequence(int start, int end)
String
toString()
-
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 newSymbolListCharSequence
wrapping aSymbolList
.- Parameters:
syms
- aSymbolList
.
-
-
Method Detail
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-