com.vii.brillien.kernel.axiom.scheduling
Class IntArrayValueMatcher
java.lang.Object
com.vii.brillien.kernel.axiom.scheduling.IntArrayValueMatcher
- All Implemented Interfaces:
- ValueMatcher
- Direct Known Subclasses:
- DayOfMonthValueMatcher
public class IntArrayValueMatcher
- extends Object
- implements ValueMatcher
A ValueMatcher whose rules are in a plain array of integer values. When asked
to validate a value, this ValueMatcher checks if it is in the array.
Method Summary |
boolean |
match(int value)
Returns true if the given value is included in the matcher list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntArrayValueMatcher
public IntArrayValueMatcher(ArrayList integers)
- Builds the ValueMatcher.
- Parameters:
integers
- An ArrayList of Integer elements, one for every value accepted
by the matcher. The match() method will return true only if
its parameter will be one of this list.
match
public boolean match(int value)
- Returns true if the given value is included in the matcher list.
- Specified by:
match
in interface ValueMatcher
- Parameters:
value
- The value.
- Returns:
- true if the given value matches the rules of the ValueMatcher,
false otherwise.
Copyright © 2012. All Rights Reserved.