Top Description Constructors Methods
org.hibernate.validator.internal.constraintvalidators.bv.time.past

public Class PastValidatorForReadablePartial

extends AbstractPastEpochBasedValidator<ReadablePartial>
Class Inheritance
Imports
java.time.Clock, org.joda.time.Instant, .ReadablePartial

Check if Joda Time type who implements org.joda.time.ReadablePartial is in the past.
Authors
Kevin Pollet <[email protected]> (C) 2011 SERLI, Guillaume Smet

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected long
getEpochMillis(ReadablePartial value, Clock reference)

Implements abstract org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator.getEpochMillis.

Returns the millisecond based instant measured from Epoch.
Inherited from org.hibernate.validator.internal.constraintvalidators.bv.time.past.AbstractPastEpochBasedValidator:
getEffectiveTemporalValidationToleranceisValid

Constructor Detail

PastValidatorForReadablePartialback to summary
public PastValidatorForReadablePartial()

Method Detail

getEpochMillisback to summary
protected long getEpochMillis(ReadablePartial value, Clock reference)

Implements abstract org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator.getEpochMillis.

Doc from org.hibernate.validator.internal.constraintvalidators.bv.time.AbstractEpochBasedTimeValidator.getEpochMillis.

Returns the millisecond based instant measured from Epoch. In the case of partials requiring a time reference, we use the Clock provided by the ClockProvider.

Annotations
@Override