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

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.IsInTheFutureInstantCondition
All Implemented Interfaces:
Condition

public class IsInTheFutureInstantCondition
extends AbstractInstantCondition

An AbstractInstantCondition implementation that checks whether the checked instant is in the future.

Author:
Uri Boness

Constructor Summary
IsInTheFutureInstantCondition()
           
 
Method Summary
protected  boolean checkInstant(org.joda.time.ReadableInstant instant)
          Checks whether the given instant is in the future.
 
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

IsInTheFutureInstantCondition

public IsInTheFutureInstantCondition()
Method Detail

checkInstant

protected boolean checkInstant(org.joda.time.ReadableInstant instant)
Checks whether the given instant is in the future.

Specified by:
checkInstant in class AbstractInstantCondition
Parameters:
instant - The instant to be checked.
Returns:
true if the given instant is in the future, false otherwise.


Copyright © 2009. All Rights Reserved.