org.springmodules.validation.util.condition.date.jodatime
Class IsInThePastInstantCondition

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.TypeSpecificCondition
          extended by org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
              extended by org.springmodules.validation.util.condition.date.jodatime.AbstractInstantCondition
                  extended by 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

Constructor Summary
IsInThePastInstantCondition()
           
 
Method Summary
protected  boolean checkInstant(org.joda.time.ReadableInstant instant)
          Checks whether the given instant is in the past.
 
Methods inherited from class org.springmodules.validation.util.condition.date.jodatime.AbstractInstantCondition
doCheck
 
Methods inherited from class org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition
beforeObjectChecked
 
Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition
afterObjectChecked, and, check, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsInThePastInstantCondition

public IsInThePastInstantCondition()
Method Detail

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.