public final class Contracts extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> ContractCondition<T> |
condition(Predicate<T> condition,
Function<T,String> describer)
Construct a predicate from the given predicate function and describer.
|
static ContractDoubleCondition |
conditionD(DoublePredicate condition,
DoubleFunction<String> describer)
Construct a
double specialized predicate from the given predicate
function and describer. |
static ContractIntCondition |
conditionI(IntPredicate condition,
IntFunction<String> describer)
Construct an
int specialized predicate from the given predicate
function and describer. |
static ContractLongCondition |
conditionL(LongPredicate condition,
LongFunction<String> describer)
Construct a
long specialized predicate from the given predicate
function and describer. |
public static <T> ContractCondition<T> condition(Predicate<T> condition, Function<T,String> describer)
T - The type of valuescondition - The predicate functiondescriber - The describerpublic static ContractIntCondition conditionI(IntPredicate condition, IntFunction<String> describer)
int specialized predicate from the given predicate
function and describer.condition - The predicate functiondescriber - The describerpublic static ContractLongCondition conditionL(LongPredicate condition, LongFunction<String> describer)
long specialized predicate from the given predicate
function and describer.condition - The predicate functiondescriber - The describerpublic static ContractDoubleCondition conditionD(DoublePredicate condition, DoubleFunction<String> describer)
double specialized predicate from the given predicate
function and describer.condition - The predicate functiondescriber - The describerCopyright © 2017 <code@io7m.com> http://io7m.com