Package be.ehealth.technicalconnector.config.domain

# Class Duration

java.lang.Object
be.ehealth.technicalconnector.config.domain.Duration

public class Duration extends Object
Domain object to model an amount of time.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Duration(long value, TimeUnit timeUnit)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `long`
  `convert(TimeUnit targetUnit)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Duration

    public Duration(long value, TimeUnit timeUnit)

- ## Method Details

  - ### convert

    public long convert(TimeUnit targetUnit)