public class TimeToLive extends ObjectWithReflectiveEqualsHashCodeToString
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static TimeToLive |
exactly(TimeUnit timeUnit,
Long timeToLive) |
protected String[] |
fieldsExcludedFromEqualsAndHashCode() |
long |
getEndDate() |
Long |
getTimeToLive() |
TimeUnit |
getTimeUnit() |
int |
hashCode() |
boolean |
isUnlimited() |
TimeToLive |
setEndDate(long endDate) |
boolean |
stillAlive() |
static TimeToLive |
unlimited() |
toStringpublic static TimeToLive unlimited()
public static TimeToLive exactly(TimeUnit timeUnit, Long timeToLive)
public TimeUnit getTimeUnit()
public Long getTimeToLive()
public long getEndDate()
public TimeToLive setEndDate(long endDate)
public boolean isUnlimited()
public boolean stillAlive()
protected String[] fieldsExcludedFromEqualsAndHashCode()
fieldsExcludedFromEqualsAndHashCode in class ObjectWithReflectiveEqualsHashCodeToStringpublic boolean equals(Object o)
equals in class ObjectWithReflectiveEqualsHashCodeToStringpublic int hashCode()
hashCode in class ObjectWithReflectiveEqualsHashCodeToStringCopyright © 2020. All rights reserved.