Package org.biojava.nbio.survival.data
Class CompactCharSequence
- java.lang.Object
-
- org.biojava.nbio.survival.data.CompactCharSequence
-
- All Implemented Interfaces:
Serializable
,CharSequence
public class CompactCharSequence extends Object implements CharSequence, Serializable
http://www.javamex.com/tutorials/memory/ascii_charsequence.shtml- Author:
- Scooter Willis
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CompactCharSequence(String str)
-
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
-
CompactCharSequence
public CompactCharSequence(String str)
- Parameters:
str
-
-
-
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
-
-