java.lang.Object
ch.tocco.nice2.optional.timereport.api.util.Duration

@Deprecated public class Duration extends Object
Deprecated.
use joda or java built in
  • Constructor Details

    • Duration

      public Duration(int amount)
      Deprecated.
    • Duration

      public Duration(long amount)
      Deprecated.
    • Duration

      public Duration(org.joda.time.LocalTime from, org.joda.time.LocalTime until)
      Deprecated.
  • Method Details

    • getAmount

      public long getAmount()
      Deprecated.
    • add

      public Duration add(Duration d)
      Deprecated.
    • add

      public Duration add(int l)
      Deprecated.
    • subtract

      public Duration subtract(Duration d)
      Deprecated.
    • subtract

      public Duration subtract(int l)
      Deprecated.
    • multiply

      public Duration multiply(double factor)
      Deprecated.
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • toMarkup

      public String toMarkup(String classPrefix)
      Deprecated.
    • hashCode

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

      public boolean equals(Object obj)
      Deprecated.
      Overrides:
      equals in class Object