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 GreaterOrEqual<T extends Comparable<T>> extends CompareTo<T> implements Serializable {
     11 
     12     public GreaterOrEqual(T value) {
     13         super(value);
     14     }
     15 
     16     @Override
     17     protected String getName() {
     18         return "geq";
     19     }
     20 
     21     @Override
     22     protected boolean matchResult(int result) {
     23         return result >= 0;
     24     }
     25 }
     26