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.Serializable
Duration 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 boolean
equals(java.lang.Object other)
TimeUnit
getUnit()
Gets the value of the unit property.java.math.BigInteger
getValue()
Gets the value of the value property.int
hashCode()
void
setUnit(TimeUnit value)
Sets the value of the unit property.void
setValue(java.math.BigInteger value)
Sets the value of the value property.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-