Package gnu.text
Class StringCursor
- java.lang.Object
-
- gnu.text.StringCursor
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Comparable
public final class StringCursor extends Object implements Comparable, Externalizable
Boxed class for the 'string-cursor' type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StringCursor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
checkStringCursor(Object obj)
int
compareTo(Object o)
int
getValue()
void
readExternal(ObjectInput in)
String
toString()
static StringCursor
valueOf(int value)
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
valueOf
public static StringCursor valueOf(int value)
-
getValue
public int getValue()
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
-
checkStringCursor
public static int checkStringCursor(Object obj)
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
-
-