public class BigTimeDurationValueType extends java.lang.Object implements ITimeDurationValueType
| Modifier and Type | Field and Description |
|---|---|
protected java.math.BigInteger |
day |
protected java.math.BigInteger |
hour |
protected java.math.BigInteger |
minute |
protected java.math.BigInteger |
month |
protected java.math.BigDecimal |
second |
protected int |
signum |
protected java.math.BigInteger |
year |
| Constructor and Description |
|---|
BigTimeDurationValueType(int signum,
java.math.BigInteger year,
java.math.BigInteger month,
java.math.BigInteger day,
java.math.BigInteger hour,
java.math.BigInteger minute,
java.math.BigDecimal second)
All the fields should be positive and use the signum field to
determine the sign.
|
BigTimeDurationValueType(java.lang.String lexicalRepresentation)
Reads in the lexical duration format.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ITimeDurationValueType o)
compare two ITimeDurationValueType as defined in
com.sun.msv.datatype/Comparator
|
boolean |
equals(ITimeDurationValueType o) |
boolean |
equals(java.lang.Object o) |
static BigTimeDurationValueType |
fromMinutes(java.math.BigInteger minutes) |
static BigTimeDurationValueType |
fromMinutes(int minutes) |
BigTimeDurationValueType |
getBigValue() |
java.math.BigInteger |
getDay() |
java.math.BigInteger |
getHour() |
java.math.BigInteger |
getMinute() |
java.math.BigInteger |
getMonth() |
java.math.BigDecimal |
getSecond() |
java.math.BigInteger |
getYear() |
int |
hashCode()
hash code has to be consistent with equals method.
|
java.lang.String |
toString() |
protected int signum
protected java.math.BigInteger year
protected java.math.BigInteger month
protected java.math.BigInteger day
protected java.math.BigInteger hour
protected java.math.BigInteger minute
protected java.math.BigDecimal second
public BigTimeDurationValueType(int signum,
java.math.BigInteger year,
java.math.BigInteger month,
java.math.BigInteger day,
java.math.BigInteger hour,
java.math.BigInteger minute,
java.math.BigDecimal second)
public BigTimeDurationValueType(java.lang.String lexicalRepresentation)
throws java.lang.IllegalArgumentException
lexicalRepresentation - whitespace stripped lexical form.java.lang.IllegalArgumentExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equals(ITimeDurationValueType o)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compare(ITimeDurationValueType o)
ITimeDurationValueTypecompare in interface ITimeDurationValueTypepublic BigTimeDurationValueType getBigValue()
getBigValue in interface ITimeDurationValueTypepublic static BigTimeDurationValueType fromMinutes(int minutes)
public static BigTimeDurationValueType fromMinutes(java.math.BigInteger minutes)
public java.math.BigInteger getDay()
signum for the sign.public java.math.BigInteger getHour()
signum for the sign.public java.math.BigInteger getMinute()
signum for the sign.public java.math.BigInteger getMonth()
signum for the sign.public java.math.BigDecimal getSecond()
signum for the sign.public java.math.BigInteger getYear()
signum for the sign.MSV