com.sun.msv.datatype.xsd.datetime

Class BigTimeDurationValueType

public class BigTimeDurationValueType extends Object implements ITimeDurationValueType

ITimeDurationValueType implementation that can hold all lexically legal timeDuration value.

Author: Kohsuke KAWAGUCHI

Constructor Summary
BigTimeDurationValueType(int signum, BigInteger year, BigInteger month, BigInteger day, BigInteger hour, BigInteger minute, BigDecimal second)
All the fields should be positive and use the signum field to determine the sign.
BigTimeDurationValueType(String lexicalRepresentation)
Reads in the lexical duration format.
Method Summary
intcompare(ITimeDurationValueType o)
booleanequals(Object o)
booleanequals(ITimeDurationValueType o)
static BigTimeDurationValueTypefromMinutes(int minutes)
static BigTimeDurationValueTypefromMinutes(BigInteger minutes)
BigTimeDurationValueTypegetBigValue()
BigIntegergetDay()
BigIntegergetHour()
BigIntegergetMinute()
BigIntegergetMonth()
BigDecimalgetSecond()
BigIntegergetYear()
inthashCode()
hash code has to be consistent with equals method.
StringtoString()

Constructor Detail

BigTimeDurationValueType

public BigTimeDurationValueType(int signum, BigInteger year, BigInteger month, BigInteger day, BigInteger hour, BigInteger minute, BigDecimal second)
All the fields should be positive and use the signum field to determine the sign.

BigTimeDurationValueType

public BigTimeDurationValueType(String lexicalRepresentation)
Reads in the lexical duration format.

Parameters: lexicalRepresentation whitespace stripped lexical form.

Method Detail

compare

public int compare(ITimeDurationValueType o)

equals

public boolean equals(Object o)

equals

public boolean equals(ITimeDurationValueType o)

fromMinutes

public static BigTimeDurationValueType fromMinutes(int minutes)

fromMinutes

public static BigTimeDurationValueType fromMinutes(BigInteger minutes)

getBigValue

public BigTimeDurationValueType getBigValue()

getDay

public BigInteger getDay()

Returns: non-null positive value. use signum for the sign.

getHour

public BigInteger getHour()

Returns: non-null positive value. use signum for the sign.

getMinute

public BigInteger getMinute()

Returns: non-null positive value. use signum for the sign.

getMonth

public BigInteger getMonth()

Returns: non-null positive value. use signum for the sign.

getSecond

public BigDecimal getSecond()

Returns: non-null positive value. use signum for the sign.

getYear

public BigInteger getYear()

Returns: non-null positive value. use signum for the sign.

hashCode

public int hashCode()
hash code has to be consistent with equals method.

toString

public String toString()