|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.innig.collect.StringRadix
public class StringRadix
A radix which supports String.
| Maturity: All the radix utilities in innig-util are completely experimental. They mostly work, but perform poorly. They may stay; they may improve; they may go away. |
| Plans: Experiment. |
Radix,
Serialized Form| Field Summary | |
|---|---|
static StringRadix |
DEFAULT
|
| Constructor Summary | |
|---|---|
StringRadix(int digitBits)
|
|
StringRadix(int digitBits,
boolean force8bit)
|
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object aObj,
java.lang.Object bObj)
Compares two strings in a manner consistent with this radix. |
int |
digit(java.lang.Object o,
int pos)
Returns the digits of the radix representation of the given String. |
boolean |
equals(java.lang.Object that)
Returns true if the given Object is a Radix identical to this one. |
int |
getBase()
Returns the base (the number of digit values) in this radix. |
int |
getMaxPosition(java.lang.Object o)
Returns zero. |
int |
getMaxPositionForAll(java.util.Collection values)
Returns the lowest position of any of the least significant digits of the given strings. |
int |
getMinPosition(java.lang.Object o)
Returns the position of the least significant digit. |
int |
getMinPositionForAll(java.util.Collection values)
Returns the lowest position of any of the least significant digits of the given strings. |
java.lang.Object |
objectFromDigits(int[] digits)
Constructs a String from the given digits. |
java.lang.Object |
objectFromDigits(int[] digits,
int offset,
int len)
Constructs a String from the given digits. |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringRadix DEFAULT
| Constructor Detail |
|---|
public StringRadix(int digitBits)
public StringRadix(int digitBits,
boolean force8bit)
| Method Detail |
|---|
public int getBase()
getBase in interface Radix
public int digit(java.lang.Object o,
int pos)
digit in interface Radixo - a String.pos - a digit position within o.
java.lang.ClassCastException - if o is not a String.public int getMaxPosition(java.lang.Object o)
getMaxPosition in interface Radixpublic int getMinPosition(java.lang.Object o)
getMinPosition in interface Radixo - a Stringpublic int getMaxPositionForAll(java.util.Collection values)
getMaxPositionForAll in interface Radixjava.lang.ClassCastException - if an of the values is not a String.public int getMinPositionForAll(java.util.Collection values)
getMinPositionForAll in interface Radixjava.lang.ClassCastException - if an of the values is not a String.public java.lang.Object objectFromDigits(int[] digits)
objectFromDigits in interface Radixjava.lang.IllegalArgumentException - if the digits don't represent a valid string.
public java.lang.Object objectFromDigits(int[] digits,
int offset,
int len)
objectFromDigits in interface Radixjava.lang.IllegalArgumentException - if the digits don't represent a valid string.
public int compare(java.lang.Object aObj,
java.lang.Object bObj)
compare in interface java.util.Comparatorpublic boolean equals(java.lang.Object that)
equals in interface java.util.Comparatorequals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||