org.apache.tools.ant.taskdefs.optional.extension

Class DeweyDecimal


public final class DeweyDecimal
extends DeweyDecimal

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

DeweyDecimal(String string)
Construct a DeweyDecimal from string in DeweyDecimal format.
DeweyDecimal(int[] components)
Construct a DeweyDecimal from an array of integer components.

Method Summary

Methods inherited from class org.apache.tools.ant.util.DeweyDecimal

get, getSize, isEqual, isGreaterThan, isGreaterThanOrEqual, isLessThan, isLessThanOrEqual, toString

Constructor Details

DeweyDecimal

public DeweyDecimal(String string)
            throws NumberFormatException
Construct a DeweyDecimal from string in DeweyDecimal format.
Parameters:
string - the string in dewey decimal format

DeweyDecimal

public DeweyDecimal(int[] components)
Construct a DeweyDecimal from an array of integer components.
Parameters:
components - an array of integer components.