Class DeweyDecimal
java.lang.Object
org.apache.tools.ant.util.DeweyDecimal
org.apache.tools.ant.taskdefs.optional.extension.DeweyDecimal
- All Implemented Interfaces:
Comparable<DeweyDecimal>
Deprecated.
use org.apache.tools.ant.util.DeweyDecimal instead.
Deprecated since ant 1.8
Utility class to contain version numbers in "Dewey Decimal"
syntax. Numbers in the "Dewey Decimal" syntax consist of positive
decimal integers separated by periods ".". For example, "2.0" or
"1.2.3.4.5.6.7". This allows an extensible number to be used to
represent major, minor, micro, etc versions. The version number
must begin with a number.
Original Implementation moved to org.apache.tools.ant.util.DeweyDecimal
-
Constructor Summary
ConstructorsConstructorDescriptionDeweyDecimal(int[] components) Deprecated.Construct a DeweyDecimal from an array of integer components.DeweyDecimal(String string) Deprecated.Construct a DeweyDecimal from string in DeweyDecimal format. -
Method Summary
Methods inherited from class DeweyDecimal
compareTo, equals, get, getSize, hashCode, isEqual, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual, toStringModifier and TypeMethodDescriptionintcompareTo(DeweyDecimal other) Compares this DeweyDecimal with another one.booleanintget(int index) Return the component at specified index.intgetSize()Return number of components inDeweyDecimal.inthashCode()booleanisEqual(DeweyDecimal other) Returntrueif thisDeweyDecimalis equal to the otherDeweyDecimal.booleanisGreaterThan(DeweyDecimal other) Returntrueif thisDeweyDecimalis greater than the otherDeweyDecimal.booleanisGreaterThanOrEqual(DeweyDecimal other) Returntrueif thisDeweyDecimalis greater than or equal to the otherDeweyDecimal.booleanisLessThan(DeweyDecimal other) Returntrueif thisDeweyDecimalis less than the otherDeweyDecimal.booleanisLessThanOrEqual(DeweyDecimal other) Returntrueif thisDeweyDecimalis less than or equal to the otherDeweyDecimal.toString()Return string representation ofDeweyDecimal.
-
Constructor Details
-
DeweyDecimal
public DeweyDecimal(int[] components) Deprecated.Construct a DeweyDecimal from an array of integer components.- Parameters:
components- an array of integer components.
-
DeweyDecimal
Deprecated.Construct a DeweyDecimal from string in DeweyDecimal format.- Parameters:
string- the string in dewey decimal format- Throws:
NumberFormatException- if string is malformed
-