T
- the type of the candidate object the specification applies to.public class LessThanSpecification<T extends Comparable<? super T>> extends ComparableSpecification<T>
Comparable.compareTo(Object)
.Constructor and Description |
---|
LessThanSpecification(T expectedValue)
Creates a less 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 LessThanSpecification(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.