public class Freshness extends Object
This is a value object
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() |
String |
toString()
Set the reference time as a string value
|
public Freshness(String dateTime)
public long getSystemTimeInSecondsSinceEpoch()
public long getRefTime()
public String toString()
Copyright © 2018. All rights reserved.