org.wamblee.conditions
Class FixedCondition<T>
java.lang.Object
org.wamblee.conditions.FixedCondition<T>
- All Implemented Interfaces:
- Condition<T>
public class FixedCondition<T>
- extends Object
- implements Condition<T>
Condition which always returns a fixed value.
- Author:
- Erik Brakkee
|
Constructor Summary |
FixedCondition(boolean aValue)
Constructs the condition. |
|
Method Summary |
boolean |
matches(T aObject)
Determines if an object matches a condition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FixedCondition
public FixedCondition(boolean aValue)
- Constructs the condition.
- Parameters:
aValue - Fixed value of the condition.
matches
public boolean matches(T aObject)
- Description copied from interface:
Condition
- Determines if an object matches a condition.
- Specified by:
matches in interface Condition<T>
- Parameters:
aObject - object to match.
- Returns:
- True iff the object matches.
Copyright © 2011. All Rights Reserved.