Class 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> &lt;complexType name="DurationType"&gt; &lt;complexContent&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt; &lt;sequence&gt; &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt; &lt;element name="unit" type="{http://flower.com/docs/domain/common}TimeUnit"/&gt; &lt;/sequence&gt; &lt;/restriction&gt; &lt;/complexContent&gt; &lt;/complexType&gt; </pre>
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected TimeUnit unit  
      protected java.math.BigInteger value  
    • Constructor Summary

      Constructors 
      Constructor Description
      DurationType()
      Default no-arg constructor abc
      DurationType​(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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • value

        protected java.math.BigInteger value
    • 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 is BigInteger
      • 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 is TimeUnit
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object