public class NumeralSortString extends java.lang.Object implements java.lang.Comparable<NumeralSortString>
Constructor and Description |
---|
NumeralSortString(java.lang.String str)
Creates a new NumeralSortString for the supplied string
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NumeralSortString otherObj) |
boolean |
equals(java.lang.Object obj) |
org.daisy.braille.pef.NumeralSortString.Part |
getPart(int index)
Gets the part of the string with the specified index.
|
int |
getPartCount()
Gets the number of parts
|
java.lang.String |
getValue()
Gets the value for this object.
|
int |
hashCode() |
public NumeralSortString(java.lang.String str)
str
- the string to apply numeral sorting onpublic org.daisy.braille.pef.NumeralSortString.Part getPart(int index)
index
- index of the part to returnpublic int getPartCount()
public java.lang.String getValue()
public int compareTo(NumeralSortString otherObj)
compareTo
in interface java.lang.Comparable<NumeralSortString>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object