Package org.biojava.bio.seq.io
Class SymbolListCharSequence
java.lang.Object
org.biojava.bio.seq.io.SymbolListCharSequence
- All Implemented Interfaces:
CharSequence
SymbolListCharSequence
is a CharSequence
implementation which wraps a SymbolList
. It is present
primarily to support regular expression matching over
SymbolList
s as it avoids creating a copy.- Since:
- 1.3
- Author:
- Keith James, Matthew Pocock
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newSymbolListCharSequence
wrapping aSymbolList
. -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int start, int end) 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, isEmpty
-
Constructor Details
-
SymbolListCharSequence
Creates a newSymbolListCharSequence
wrapping aSymbolList
.- Parameters:
syms
- aSymbolList
.
-
-
Method Details
-
charAt
- Specified by:
charAt
in interfaceCharSequence
-
length
- Specified by:
length
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-