com.sun.msv.datatype.xsd.datetime
Class BigTimeDurationValueType

java.lang.Object
  extended bycom.sun.msv.datatype.xsd.datetime.BigTimeDurationValueType
All Implemented Interfaces:
ITimeDurationValueType, java.io.Serializable

public class BigTimeDurationValueType
extends java.lang.Object
implements ITimeDurationValueType

ITimeDurationValueType implementation that can hold all lexically legal timeDuration value.

Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Constructor Summary
BigTimeDurationValueType(java.math.BigInteger year, java.math.BigInteger month, java.math.BigInteger day, java.math.BigInteger hour, java.math.BigInteger minute, java.math.BigDecimal second)
           
 
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()
           
 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

BigTimeDurationValueType

public BigTimeDurationValueType(java.math.BigInteger year,
                                java.math.BigInteger month,
                                java.math.BigInteger day,
                                java.math.BigInteger hour,
                                java.math.BigInteger minute,
                                java.math.BigDecimal second)
Method Detail

compare

public int compare(ITimeDurationValueType o)
Description copied from interface: ITimeDurationValueType
compare two ITimeDurationValueType as defined in com.sun.msv.datatype/Comparator

Specified by:
compare in interface ITimeDurationValueType

equals

public boolean equals(ITimeDurationValueType o)

equals

public boolean equals(java.lang.Object o)

fromMinutes

public static BigTimeDurationValueType fromMinutes(java.math.BigInteger minutes)

fromMinutes

public static BigTimeDurationValueType fromMinutes(int minutes)

getBigValue

public BigTimeDurationValueType getBigValue()
Specified by:
getBigValue in interface ITimeDurationValueType

hashCode

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


toString

public java.lang.String toString()


Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.