Top Description Constructors Methods
org.apache.tools.ant.taskdefs.optional.extension

public final Class DeweyDecimal

extends DeweyDecimal
Class Inheritance

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

AccessConstructor and Description
public
DeweyDecimal(final int[]
an array of integer components.
components
)

Construct a DeweyDecimal from an array of integer components.

public
DeweyDecimal(final String
the string in dewey decimal format
string
)

Construct a DeweyDecimal from string in DeweyDecimal format.

Method Summary

Inherited from org.apache.tools.ant.util.DeweyDecimal:
compareToequalsgetgetSizehashCodeisEqualisGreaterThanisGreaterThanOrEqualisLessThanisLessThanOrEqualtoString

Constructor Detail

DeweyDecimalback to summary
public DeweyDecimal(final int[] components)

Construct a DeweyDecimal from an array of integer components.

Parameters
components:int[]

an array of integer components.

DeweyDecimalback to summary
public DeweyDecimal(final String string) throws NumberFormatException

Construct a DeweyDecimal from string in DeweyDecimal format.

Parameters
string:String

the string in dewey decimal format

Exceptions
NumberFormatException:
if string is malformed