public class ShouldBeLessOrEqual extends BasicErrorMessageFactory
arguments, format, formatter
Modifier | Constructor and Description |
---|---|
private |
ShouldBeLessOrEqual(java.lang.Comparable<?> actual,
java.lang.Comparable<?> other,
ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
static <T extends java.lang.Comparable<? super T>> |
shouldBeLessOrEqual(T actual,
T other)
Creates a new
ShouldBeLessOrEqual . |
static <T extends java.lang.Comparable<? super T>> |
shouldBeLessOrEqual(T actual,
T other,
ComparisonStrategy comparisonStrategy)
Creates a new
ShouldBeLessOrEqual . |
create, create, create, equals, hashCode, toString, unquotedString
private ShouldBeLessOrEqual(java.lang.Comparable<?> actual, java.lang.Comparable<?> other, ComparisonStrategy comparisonStrategy)
public static <T extends java.lang.Comparable<? super T>> ErrorMessageFactory shouldBeLessOrEqual(T actual, T other)
ShouldBeLessOrEqual
.T
- guarantees that the values used in this factory have the same type.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.ErrorMessageFactory
.public static <T extends java.lang.Comparable<? super T>> ErrorMessageFactory shouldBeLessOrEqual(T actual, T other, ComparisonStrategy comparisonStrategy)
ShouldBeLessOrEqual
.T
- guarantees that the values used in this factory have the same type.actual
- the actual value in the failed assertion.other
- the value used in the failed assertion to compare the actual value to.comparisonStrategy
- the ComparisonStrategy
used to evaluate assertion.ErrorMessageFactory
.