public class Freshness extends Object
This is a value object
Modifier and Type | Field and Description |
---|---|
private long |
refSecondsSinceEpoch |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
long |
getRefTime()
Get the reference time as a long value (in seconds since epoch)
|
long |
getSystemTimeInSecondsSinceEpoch()
Calculates the current time since epoch in seconds
|
int |
hashCode() |
private void |
parse(String dateTime) |
String |
toString()
Set the reference time as a string value
|
public Freshness(String dateTime)
private void parse(String dateTime)
public long getSystemTimeInSecondsSinceEpoch()
public long getRefTime()
public String toString()
Copyright © 2018. All rights reserved.