Class TimeToLiveDTO
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.serialization.model.TimeToLiveDTO
-
- All Implemented Interfaces:
DTO<TimeToLive>
public class TimeToLiveDTO extends ObjectWithReflectiveEqualsHashCodeToString implements DTO<TimeToLive>
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description TimeToLiveDTO()
TimeToLiveDTO(TimeToLive timeToLive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeToLive
buildObject()
protected String[]
fieldsExcludedFromEqualsAndHashCode()
Long
getEndDate()
Long
getTimeToLive()
TimeUnit
getTimeUnit()
boolean
isUnlimited()
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, hashCode, key, toString
-
-
-
-
Constructor Detail
-
TimeToLiveDTO
public TimeToLiveDTO(TimeToLive timeToLive)
-
TimeToLiveDTO
public TimeToLiveDTO()
-
-
Method Detail
-
buildObject
public TimeToLive buildObject()
- Specified by:
buildObject
in interfaceDTO<TimeToLive>
-
getTimeUnit
public TimeUnit getTimeUnit()
-
getTimeToLive
public Long getTimeToLive()
-
getEndDate
public Long getEndDate()
-
isUnlimited
public boolean isUnlimited()
-
fieldsExcludedFromEqualsAndHashCode
protected String[] fieldsExcludedFromEqualsAndHashCode()
- Overrides:
fieldsExcludedFromEqualsAndHashCode
in classObjectWithReflectiveEqualsHashCodeToString
-
-