Package com.flower.docs.domain.common
Class DurationType
- java.lang.Object
-
- com.flower.docs.domain.common.DurationType
-
- All Implemented Interfaces:
java.io.Serializable
public class DurationType extends java.lang.Object implements java.io.SerializableDuration expressed in a unit time <p>Java class for DurationType complex type. <p>The following schema fragment specifies the expected content contained within this class. <pre> <complexType name="DurationType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer"/> <element name="unit" type="{http://flower.com/docs/domain/common}TimeUnit"/> </sequence> </restriction> </complexContent> </complexType> </pre>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DurationType()Default no-arg constructor abcDurationType(java.math.BigInteger value, TimeUnit unit)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)TimeUnitgetUnit()Gets the value of the unit property.java.math.BigIntegergetValue()Gets the value of the value property.inthashCode()voidsetUnit(TimeUnit value)Sets the value of the unit property.voidsetValue(java.math.BigInteger value)Sets the value of the value property.java.lang.StringtoString()
-
-
-
Field Detail
-
value
protected java.math.BigInteger value
-
unit
protected TimeUnit unit
-
-
Constructor Detail
-
DurationType
public DurationType()
Default no-arg constructor abc
-
DurationType
public DurationType(java.math.BigInteger value, TimeUnit unit)Fully-initialising value constructor
-
-
Method Detail
-
getValue
public java.math.BigInteger getValue()
Gets the value of the value property.- Returns:
- possible object is
BigInteger
-
setValue
public void setValue(java.math.BigInteger value)
Sets the value of the value property.- Parameters:
value- allowed object isBigInteger
-
getUnit
public TimeUnit getUnit()
Gets the value of the unit property.- Returns:
- possible object is
TimeUnit
-
setUnit
public void setUnit(TimeUnit value)
Sets the value of the unit property.- Parameters:
value- allowed object isTimeUnit
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-