|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.msv.datatype.xsd.datetime.BigTimeDurationValueType
public class BigTimeDurationValueType
ITimeDurationValueType implementation that can hold all lexically legal timeDuration value.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.IllegalArgumentException| Method Detail |
|---|
public 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)
ITimeDurationValueType
compare 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||