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 booleanequals(java.lang.Object o)java.time.temporal.ChronoUnitgetUnit()intgetValue()inthashCode()TimeToLivesetUnit(java.time.temporal.ChronoUnit unit)TimeToLivesetValue(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-