1 /* 2 * Copyright (c) 2007 Mockito contributors 3 * This program is made available under the terms of the MIT License. 4 */ 5 package org.mockito.internal.matchers; 6 7 import java.io.Serializable; 8 9 public class GreaterOrEqual<T extends Comparable<T>> extends CompareTo<T> implements Serializable { 10 GreaterOrEqual(T value)11 public GreaterOrEqual(T value) { 12 super(value); 13 } 14 15 @Override getName()16 protected String getName() { 17 return "geq"; 18 } 19 20 @Override matchResult(int result)21 protected boolean matchResult(int result) { 22 return result >= 0; 23 } 24 } 25