org.springmodules.validation.util.condition.date.jodatime
Class IsInThePastInstantCondition
java.lang.Object
org.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.TypeSpecificCondition
org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
org.springmodules.validation.util.condition.date.jodatime.AbstractInstantCondition
org.springmodules.validation.util.condition.date.jodatime.IsInThePastInstantCondition
- All Implemented Interfaces:
- Condition
public class IsInThePastInstantCondition
- extends AbstractInstantCondition
An AbstractInstantCondition
implementation that checks whether the checked instant is in the past.
- Author:
- Uri Boness
Method Summary |
protected boolean |
checkInstant(org.joda.time.ReadableInstant instant)
Checks whether the given instant is in the past. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsInThePastInstantCondition
public IsInThePastInstantCondition()
checkInstant
protected boolean checkInstant(org.joda.time.ReadableInstant instant)
- Checks whether the given instant is in the past.
- Specified by:
checkInstant
in class AbstractInstantCondition
- Parameters:
instant
- The instant to be checked.
- Returns:
true
if the given instant is in the past, false
otehrwise.
Copyright © 2009. All Rights Reserved.