| Package | Description |
|---|---|
| com.io7m.jaffirm.core |
Core types and functions.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ContractCondition<T>
Immutable implementation of
ContractConditionType. |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Invariants.checkInvariant(T value,
ContractConditionType<T> condition)
Evaluate the given
predicate using value as input. |
static <T> T |
Invariants.checkInvariants(T value,
ContractConditionType<T>... conditions)
Evaluate all of the given
conditions using value as
input. |
static <T> T |
Postconditions.checkPostcondition(T value,
ContractConditionType<T> condition)
Evaluate the given
predicate using value as input. |
static <T> T |
Postconditions.checkPostconditions(T value,
ContractConditionType<T>... conditions)
Evaluate all of the given
conditions using value as
input. |
static <T> T |
Preconditions.checkPrecondition(T value,
ContractConditionType<T> condition)
Evaluate the given
predicate using value as input. |
static <T> T |
Preconditions.checkPreconditions(T value,
ContractConditionType<T>... conditions)
Evaluate all of the given
conditions using value as
input. |
static <T> ContractCondition<T> |
ContractCondition.copyOf(ContractConditionType<T> instance)
Creates an immutable copy of a
ContractConditionType value. |
ContractCondition.Builder<T> |
ContractCondition.Builder.from(ContractConditionType<T> instance)
Fill a builder with attribute values from the provided
ContractConditionType instance. |
Copyright © 2016 <code@io7m.com> http://io7m.com