org.springmodules.validation.util.condition.common
Class AlwaysTrueCondition

java.lang.Object
  extended by org.springmodules.validation.util.condition.AbstractCondition
      extended by org.springmodules.validation.util.condition.common.AlwaysTrueCondition
All Implemented Interfaces:
Condition

public final class AlwaysTrueCondition
extends AbstractCondition

An AbstractCondition implementation that always returns true.

Author:
Uri Boness

Constructor Summary
AlwaysTrueCondition()
           
 
Method Summary
 boolean doCheck(Object value)
          Always returns true.
 boolean equals(Object obj)
           
 int hashCode()
           
 
Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition
afterObjectChecked, and, beforeObjectChecked, check, or
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlwaysTrueCondition

public AlwaysTrueCondition()
Method Detail

doCheck

public boolean doCheck(Object value)
Always returns true.

Specified by:
doCheck in class AbstractCondition
Parameters:
value - The object to be checked.
Returns:
false

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009. All Rights Reserved.