public class TimestampChecker
Checks if the given timestamp falls within the allowed tolerance interval.
Constructor and Description |
---|
TimestampChecker(java.time.Clock clock,
java.time.Duration tolerance)
Checks if the given timestamp falls within the allowed tolerance interval.
|
TimestampChecker()
Checks if the given timestamp falls within the allowed tolerance interval.
|
Modifier and Type | Method and Description |
---|---|
java.time.Clock |
getClock() |
java.time.Duration |
getTolerance() |
boolean |
isValid(Timestamp timestampCommand) |
public TimestampChecker(java.time.Clock clock, java.time.Duration tolerance)
Checks if the given timestamp falls within the allowed tolerance interval.
public TimestampChecker()
Checks if the given timestamp falls within the allowed tolerance interval.
public boolean isValid(Timestamp timestampCommand)
public java.time.Clock getClock()
public java.time.Duration getTolerance()