org.apache.tools.ant.util
public class DeweyDecimal extends Object
| Constructor Summary | |
|---|---|
| DeweyDecimal(int[] components)
Construct a DeweyDecimal from an array of integer components.
| |
| DeweyDecimal(String string)
Construct a DeweyDecimal from string in DeweyDecimal format.
| |
| Method Summary | |
|---|---|
| int | get(int index)
Return the component at specified index.
|
| int | getSize()
Return number of components in DeweyDecimal.
|
| boolean | isEqual(DeweyDecimal other)
Return true if this DeweyDecimal is
equal to the other DeweyDecimal.
|
| boolean | isGreaterThan(DeweyDecimal other)
Return true if this DeweyDecimal is
greater than the other DeweyDecimal.
|
| boolean | isGreaterThanOrEqual(DeweyDecimal other)
Return true if this DeweyDecimal is
greater than or equal to the other DeweyDecimal.
|
| boolean | isLessThan(DeweyDecimal other)
Return true if this DeweyDecimal is
less than the other DeweyDecimal.
|
| boolean | isLessThanOrEqual(DeweyDecimal other)
Return true if this DeweyDecimal is
less than or equal to the other DeweyDecimal.
|
| String | toString()
Return string representation of DeweyDecimal.
|
Parameters: components an array of integer components.
Parameters: string the string in dewey decimal format
Throws: NumberFormatException if string is malformed
Parameters: index the index of components
Returns: the value of component at index
DeweyDecimal.
Returns: the number of components in dewey decimal
true if this DeweyDecimal is
equal to the other DeweyDecimal.
Parameters: other the other DeweyDecimal
Returns: true if equal to other DeweyDecimal, false otherwise
true if this DeweyDecimal is
greater than the other DeweyDecimal.
Parameters: other the other DeweyDecimal
Returns: true if greater than other DeweyDecimal, false otherwise
true if this DeweyDecimal is
greater than or equal to the other DeweyDecimal.
Parameters: other the other DeweyDecimal
Returns: true if greater than or equal to other DeweyDecimal, false otherwise
true if this DeweyDecimal is
less than the other DeweyDecimal.
Parameters: other the other DeweyDecimal
Returns: true if less than other DeweyDecimal, false otherwise
true if this DeweyDecimal is
less than or equal to the other DeweyDecimal.
Parameters: other the other DeweyDecimal
Returns: true if less than or equal to other DeweyDecimal, false otherwise
DeweyDecimal.
Returns: the string representation of DeweyDecimal.