public class SymbolListCharSequence extends Object implements 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.Constructor and Description |
---|
SymbolListCharSequence(SymbolList syms)
Creates a new
SymbolListCharSequence wrapping a
SymbolList . |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
public SymbolListCharSequence(SymbolList syms)
SymbolListCharSequence
wrapping a
SymbolList
.syms
- a SymbolList
.public char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
Copyright © 2020 BioJava. All rights reserved.