1 /* 2 * Copyright 2001-2009 OFFIS, Tammo Freese 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.easymock.internal.matchers; 17 18 public class LessThan<T extends Comparable<T>> extends CompareTo<T> { 19 20 private static final long serialVersionUID = 6004888476822043880L; 21 LessThan(Comparable<T> value)22 public LessThan(Comparable<T> value) { 23 super(value); 24 } 25 26 @Override getName()27 protected String getName() { 28 return "lt"; 29 } 30 31 @Override matchResult(int result)32 protected boolean matchResult(int result) { 33 return result < 0; 34 } 35 } 36