public final class Atlantic extends Object
newInstanceExecutionBuilder(Object) method and
both static method calls and constructor calls will use the newStaticExecutionBuilder() one.
It is possible to use instance methods on using the static executor by setting the instance to be executed as the
first parameter but it's not recommended.
This class cannot and should not be extended and only provides the 2 static methods for building executions.| Modifier and Type | Method and Description |
|---|---|
static <INSTANCE,RESULT> |
newInstanceExecutionBuilder(INSTANCE instance)
Creates an
instance executor. |
static <RESULT> StaticExecutionBuilderFactory<RESULT> |
newStaticExecutionBuilder()
Creates a
static executor. |
public static <INSTANCE,RESULT> InstanceExecutionBuilderFactory<INSTANCE,RESULT> newInstanceExecutionBuilder(INSTANCE instance)
instance executor. The executor requires an instance to run over and will call
any method defined on it as long as the scope of the execution is allowed (i.e. private method calls will not be
allowed out of the class).
Static methods or constructors should not be called using this method.INSTANCE - The type of the instance over which the method will be called.RESULT - The type of result returned by the execution to build.instance - The instance over which the method will be called.public static <RESULT> StaticExecutionBuilderFactory<RESULT> newStaticExecutionBuilder()
static executor. The executor doesn't require an instance to run over and will
call any method defined over it.
Only static methods and constructors should be called using this method.RESULT - The type of result returned by the execution to build.Copyright © 2019. All rights reserved.