Home | History | Annotate | Download | only in matchers
      1 /*
      2  * Copyright (c) 2007 Mockito contributors
      3  * This program is made available under the terms of the MIT License.
      4  */
      5 
      6 package org.mockito.internal.matchers;
      7 
      8 import java.io.Serializable;
      9 
     10 public class LessThan<T extends Comparable<T>> extends CompareTo<T> implements Serializable {
     11 
     12     private static final long serialVersionUID = -133860804462310942L;
     13 
     14     public LessThan(Comparable<T> value) {
     15         super(value);
     16     }
     17 
     18     @Override
     19     protected String getName() {
     20         return "lt";
     21     }
     22 
     23     @Override
     24     protected boolean matchResult(int result) {
     25         return result < 0;
     26     }
     27 }
     28