public final class LessThanOrEqualTo<TARGET extends Comparable<TARGET>> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
lessThan(T maximum) |
String |
name() |
Precondition<TARGET> |
or(Precondition<TARGET> other) |
boolean |
test(TARGET target) |
void |
testThrowing(TARGET target) |
public static <T extends Comparable<T>> LessThanOrEqualTo<T> lessThan(T maximum)
public final boolean test(TARGET target)
public final void testThrowing(TARGET target)
throws ValidationException
testThrowing in interface Precondition<TARGET>ValidationExceptionpublic final String name()
name in interface Precondition<TARGET>public final Precondition<TARGET> or(Precondition<TARGET> other)
or in interface Precondition<TARGET>Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.