com.sun.msv.datatype.xsd.datetime
Class BigTimeDurationValueType
- ITimeDurationValueType, Serializable
public class BigTimeDurationValueType
ITimeDurationValueType implementation that can hold all lexically legal
timeDuration value.
BigTimeDurationValueType(String lexicalRepresentation) - Reads in the lexical duration format.
|
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)
throws IllegalArgumentException
Reads in the lexical duration format.
lexicalRepresentation
- whitespace stripped lexical form.
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.
equals
public boolean equals(Object o)
getDay
public BigInteger getDay()
- non-null positive value. use
signum
for the sign.
getHour
public BigInteger getHour()
- non-null positive value. use
signum
for the sign.
getMinute
public BigInteger getMinute()
- non-null positive value. use
signum
for the sign.
getMonth
public BigInteger getMonth()
- non-null positive value. use
signum
for the sign.
getSecond
public BigDecimal getSecond()
- non-null positive value. use
signum
for the sign.
getYear
public BigInteger getYear()
- 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()