|
||||||||||
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.
Field Summary | |
---|---|
protected BigInteger |
day
|
protected BigInteger |
hour
|
protected BigInteger |
minute
|
protected BigInteger |
month
|
protected BigDecimal |
second
|
protected int |
signum
|
protected BigInteger |
year
|
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 | |
---|---|
int |
compare(ITimeDurationValueType o)
compare two ITimeDurationValueType as defined in com.sun.msv.datatype/Comparator |
boolean |
equals(ITimeDurationValueType o)
|
boolean |
equals(Object o)
|
static BigTimeDurationValueType |
fromMinutes(BigInteger minutes)
|
static BigTimeDurationValueType |
fromMinutes(int minutes)
|
BigTimeDurationValueType |
getBigValue()
|
BigInteger |
getDay()
|
BigInteger |
getHour()
|
BigInteger |
getMinute()
|
BigInteger |
getMonth()
|
BigDecimal |
getSecond()
|
BigInteger |
getYear()
|
int |
hashCode()
hash code has to be consistent with equals method. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int signum
protected BigInteger year
protected BigInteger month
protected BigInteger day
protected BigInteger hour
protected BigInteger minute
protected BigDecimal second
Constructor Detail |
---|
public BigTimeDurationValueType(int signum, BigInteger year, BigInteger month, BigInteger day, BigInteger hour, BigInteger minute, BigDecimal second)
public BigTimeDurationValueType(String lexicalRepresentation) throws IllegalArgumentException
lexicalRepresentation
- whitespace stripped lexical form.
IllegalArgumentException
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public boolean equals(ITimeDurationValueType o)
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public int compare(ITimeDurationValueType o)
ITimeDurationValueType
compare
in interface ITimeDurationValueType
public BigTimeDurationValueType getBigValue()
getBigValue
in interface ITimeDurationValueType
public static BigTimeDurationValueType fromMinutes(int minutes)
public static BigTimeDurationValueType fromMinutes(BigInteger minutes)
public BigInteger getDay()
signum
for the sign.public BigInteger getHour()
signum
for the sign.public BigInteger getMinute()
signum
for the sign.public BigInteger getMonth()
signum
for the sign.public BigDecimal getSecond()
signum
for the sign.public BigInteger getYear()
signum
for the sign.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |