Class DeltaTimeT1

java.lang.Object
de.dlr.proseo.prodclmgr.rest.model.DeltaTimeT1
All Implemented Interfaces:
Serializable

public class DeltaTimeT1 extends Object implements Serializable
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • duration

      protected Long duration
      The duration of the time period in time units
    • unit

      protected String unit
      The time unit applicable for this time period (one of { "DAYS", "HOURS", "MINUTES", "SECONDS" })
  • Constructor Details

    • DeltaTimeT1

      public DeltaTimeT1()
      Creates a new DeltaTimeT1.
    • DeltaTimeT1

      public DeltaTimeT1(Long duration, String unit)
      Creates a new DeltaTimeT1.
  • Method Details

    • getDuration

      @NotNull public @NotNull Long getDuration()
      Returns the duration.
      Returns:
      duration
    • setDuration

      public void setDuration(Long duration)
      Set the duration.
      Parameters:
      duration - the new duration
    • getUnit

      @NotNull public @NotNull String getUnit()
      Returns the unit.
      Returns:
      unit
    • setUnit

      public void setUnit(String unit)
      Set the unit.
      Parameters:
      unit - the new unit
    • hashCode

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object