X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=support%2Ftest%2Forg%2Fwamblee%2Fconditions%2FLessThanCondition.java;fp=support%2Ftest%2Forg%2Fwamblee%2Fconditions%2FLessThanCondition.java;h=f2f5fb23b9c9d211063adad76c41239bab46db2c;hb=e1d3e74f8d691b5def8bbb9b422002fdf3a61968;hp=0000000000000000000000000000000000000000;hpb=aab0b002dd29c198ecad51122d925440f83140db;p=utils diff --git a/support/test/org/wamblee/conditions/LessThanCondition.java b/support/test/org/wamblee/conditions/LessThanCondition.java new file mode 100644 index 00000000..f2f5fb23 --- /dev/null +++ b/support/test/org/wamblee/conditions/LessThanCondition.java @@ -0,0 +1,37 @@ +/* + * Copyright 2005 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.wamblee.conditions; + +/** + * Test condition object. + */ +public class LessThanCondition implements Condition { + + private int _value; + + public LessThanCondition(int aValue) { + _value = aValue; + } + + /* (non-Javadoc) + * @see org.wamblee.conditions.Condition#matches(T) + */ + public boolean matches(Integer aObject) { + return aObject < _value; + } + +}