com.unitesk.requality.tools
public class Index extends java.lang.Object implements java.lang.Comparable<Index>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fraction |
protected java.lang.String |
natural |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Index index) |
static Index |
create(java.lang.String str) |
protected static Index |
create(java.lang.String natural,
java.lang.String fraction) |
static Index |
createOne() |
Index |
findGreaterIndex() |
Index |
findMiddleIndex(Index other) |
static Index |
getNextIndex(java.lang.String type,
TreeNode parent,
TreeNode node) |
static Index |
getNextIndex(java.lang.String type,
TreeNode parent,
TreeNode node,
boolean tobegin) |
static Index |
getZero() |
java.lang.String |
toString() |
protected java.lang.String natural
protected java.lang.String fraction
protected static Index create(java.lang.String natural, java.lang.String fraction)
public static Index create(java.lang.String str)
public static Index createOne()
public static Index getZero()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(Index index)
compareTo
in interface java.lang.Comparable<Index>
public Index findGreaterIndex()
public static Index getNextIndex(java.lang.String type, TreeNode parent, TreeNode node)