Package org.biojava.utils
Class RepeatedCharSequence
- java.lang.Object
-
- org.biojava.utils.RepeatedCharSequence
-
- All Implemented Interfaces:
CharSequence
public class RepeatedCharSequence extends Object implements CharSequence
- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description RepeatedCharSequence()
RepeatedCharSequence(int length, char character)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
void
flush()
char
getCharacter()
int
getLength()
int
length()
void
setCharacter(char character)
void
setLength(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
-
RepeatedCharSequence
public RepeatedCharSequence(int length, char character)
-
RepeatedCharSequence
public RepeatedCharSequence()
-
-
Method Detail
-
getLength
public int getLength()
-
setLength
public void setLength(int length)
-
getCharacter
public char getCharacter()
-
setCharacter
public void setCharacter(char character)
-
flush
public void flush()
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-