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