org.springframework.rules.constraint
Class IfTrue
java.lang.Object
org.springframework.core.closure.support.AlgorithmsAccessor
org.springframework.core.closure.support.AbstractConstraint
org.springframework.rules.constraint.IfTrue
- All Implemented Interfaces:
- Serializable, Constraint, TypeResolvable
public class IfTrue
- extends AbstractConstraint
- implements TypeResolvable
- See Also:
- Serialized Form
Method Summary |
String |
getType()
Returns this object's logical type identifier. |
boolean |
test(Object argument)
Test the provided argument against this predicate's condition. |
Methods inherited from class org.springframework.core.closure.support.AlgorithmsAccessor |
allTrue, allTrue, anyTrue, anyTrue, findAll, findAll, findFirst, findFirst, forEach, forEach, getAlgorithms |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IfTrue
public IfTrue(Constraint constraint,
Constraint mustAlsoBeTrue)
IfTrue
public IfTrue(Constraint constraint,
Constraint mustAlsoBeTrue,
String type)
IfTrue
public IfTrue(Constraint constraint,
Constraint mustAlsoBeTrue,
Constraint elseMustAlsoBeTrue)
IfTrue
public IfTrue(Constraint constraint,
Constraint mustAlsoBeTrue,
Constraint elseMustAlsoBeTrue,
String type)
test
public boolean test(Object argument)
- Description copied from interface:
Constraint
- Test the provided argument against this predicate's condition.
- Specified by:
test
in interface Constraint
- Parameters:
argument
- the argument value
- Returns:
true
if the condition was satisfied,
false
otherwise
getType
public String getType()
- Description copied from interface:
TypeResolvable
- Returns this object's logical type identifier.
- Specified by:
getType
in interface TypeResolvable
- Returns:
- The type identifier
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.