• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 GreaterThan<T extends Comparable<T>> extends CompareTo<T> implements Serializable {
11 
12     private static final long serialVersionUID = 7446529803235604408L;
13 
GreaterThan(Comparable<T> value)14     public GreaterThan(Comparable<T> value) {
15         super(value);
16     }
17 
18     @Override
getName()19     protected String getName() {
20         return "gt";
21     }
22 
23     @Override
matchResult(int result)24     protected boolean matchResult(int result) {
25         return result > 0;
26     }
27 }
28