Builder

public final class Builder<T> extends BasicResult.Builder<RT, AT, TT, ET, BT> implements ResultOfObject.Builder<T>(source)

Constructors

Link copied to clipboard
public void BasicResultOfObject.Builder(Environment environment)

Types

Link copied to clipboard
public final class Factory<T> extends BasicResult.Builder.Factory<RT, AT, TT, ET, BT> implements ResultOfObject.Builder.Factory<T>

Properties

Link copied to clipboard
protected AT actual
Link copied to clipboard
protected final Environment environment
Link copied to clipboard
protected Throwable exception
Link copied to clipboard
protected boolean successful
Link copied to clipboard
protected TT test

Functions

Link copied to clipboard
public BT actual(AT actual)
Sets the actual behavior of the result.
Link copied to clipboard
Builds a result for the given properties and returns it.
Link copied to clipboard
public BT exception(Throwable exception)
Sets the exception of the result.
Link copied to clipboard
public ResultOfObject.Builder<T> object(T actual, boolean successful)
Sets the actual object and if the actual object fulfils the expected object.
Link copied to clipboard
public BT test(TT test)
Sets the test of the result.