T
- the type of the candidate object the specification applies to.public class GreaterThanSpecification<T extends Comparable<? super T>> extends ComparableSpecification<T>
Comparable.compareTo(Object)
.Constructor and Description |
---|
GreaterThanSpecification(T expectedValue)
Creates a greater than specification.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isExpected(int compareToResult)
Returns if the comparison result returned by
Comparable.compareTo(Object) is the one expected. |
String |
toString() |
getExpectedValue, isSatisfiedBy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, any, asPredicate, negate, none, or
public GreaterThanSpecification(T expectedValue)
expectedValue
- the value used to do the comparison against.protected boolean isExpected(int compareToResult)
ComparableSpecification
Comparable.compareTo(Object)
is the one expected.isExpected
in class ComparableSpecification<T extends Comparable<? super T>>
compareToResult
- the result returned by Comparable.compareTo(Object)
Copyright © 2013-2018–2019 SeedStack. All rights reserved.