org.springmodules.validation.util.condition.common
Class IsTrueCondition
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.common.IsTrueCondition
- All Implemented Interfaces:
- Condition
public class IsTrueCondition
- extends NonNullAcceptingTypeSpecificCondition
A boolean condition that checks whether the checked boolean is true
.
- Author:
- Uri Boness
Method Summary |
boolean |
doCheck(Object bool)
Checks whether the given boolean object is true . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsTrueCondition
public IsTrueCondition()
- Constructs a nwe IsTrueCondition.
doCheck
public boolean doCheck(Object bool)
- Checks whether the given boolean object is
true
.
- Specified by:
doCheck
in class AbstractCondition
- Parameters:
bool
- The boolean object to be checked.
- Returns:
true
if the given boolean object is true
, false
otherwise.
Copyright © 2009. All Rights Reserved.