Interface TimeValidator
- All Known Implementing Classes:
- AbstractTimeValidator,- AbstractTimeValidator.DateConstraint,- AbstractTimeValidator.LocalDateConstraint,- AbstractTimeValidator.LocalDateTimeConstraint,- AbstractTimeValidator.LocalTimeConstraint,- AbstractTimeValidator.OffsetDateTimeConstraint,- AbstractTimeValidator.OffsetTimeConstraint
public interface TimeValidator
Base interface for date/time validators which contains all restrictions.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisFuture()booleanbooleanisPast()booleanvoidsetCheckSeconds(boolean checkSeconds) Sets check seconds to validator.
- 
Method Details- 
isPastboolean isPast()- Returns:
- true if date or time in the past
 
- 
isPastOrPresentboolean isPastOrPresent()- Returns:
- true if date or time in the past or present
 
- 
isFutureboolean isFuture()- Returns:
- true if date or time in the future
 
- 
isFutureOrPresentboolean isFutureOrPresent()- Returns:
- true if date or time in the future or present
 
- 
setCheckSecondsvoid setCheckSeconds(boolean checkSeconds) Sets check seconds to validator. Set true if validator should check seconds and nanos while it comparing dates or times.- Parameters:
- checkSeconds- check seconds and nanos option, false by default
 
 
-