Class TimeToLive
- java.lang.Object
-
- fr.gouv.vitam.workspace.api.model.TimeToLive
-
public class TimeToLive extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TimeToLive()
TimeToLive(int 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()
int
getValue()
int
hashCode()
TimeToLive
setUnit(java.time.temporal.ChronoUnit unit)
TimeToLive
setValue(int value)
-
-
-
Method Detail
-
getValue
public int getValue()
-
setValue
public TimeToLive setValue(int value)
-
getUnit
public java.time.temporal.ChronoUnit getUnit()
-
setUnit
public TimeToLive setUnit(java.time.temporal.ChronoUnit unit)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-