Class APIDuration

  • All Implemented Interfaces:
    java.io.Serializable

    public class APIDuration
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Damian Sniezek
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      APIDuration()  
      APIDuration​(java.lang.Long value, java.time.temporal.ChronoUnit unit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.time.temporal.ChronoUnit getUnit()  
      java.lang.Long getValue()  
      int hashCode()  
      void setUnit​(java.time.temporal.ChronoUnit unit)  
      void setValue​(java.lang.Long value)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • APIDuration

        public APIDuration()
      • APIDuration

        public APIDuration​(java.lang.Long value,
                           java.time.temporal.ChronoUnit unit)
    • Method Detail

      • getUnit

        public java.time.temporal.ChronoUnit getUnit()
      • setUnit

        public void setUnit​(java.time.temporal.ChronoUnit unit)
      • getValue

        public java.lang.Long getValue()
      • setValue

        public void setValue​(java.lang.Long value)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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