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