| Package | Description |
|---|---|
| org.oddjob.arooa.runtime |
Classes concerning runtime configuration.
|
| org.oddjob.arooa.utils |
Miscellaneous utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static Try<ScriptEvaluator> |
ScriptEvaluator.getDefault(ClassLoader classLoader) |
static Try<ScriptEvaluator> |
ScriptEvaluator.getDefault(ClassLoader classLoader) |
static Try<ScriptEngine> |
ScriptEvaluator.getDefaultEngine(ClassLoader classLoader) |
static Try<ScriptEngine> |
ScriptEvaluator.getDefaultEngine(ClassLoader classLoader) |
static Try<ScriptEngine> |
ScriptEvaluator.getEngineByName(ClassLoader classLoader,
String language) |
static Try<ScriptEngine> |
ScriptEvaluator.getEngineByName(ClassLoader classLoader,
String language) |
| Modifier and Type | Method and Description |
|---|---|
static <U> Try<U> |
Try.fail(Throwable e)
Create a try wrapping an Exception.
|
static <U> Try<U> |
Try.fail(Throwable e)
Create a try wrapping an Exception.
|
abstract <U> Try<U> |
Try.flatMap(Function<? super T,? extends Try<U>> f)
Apply a function to the Try that itself returns a Try.
|
abstract <U> Try<U> |
Try.flatMap(Function<? super T,? extends Try<U>> f)
Apply a function to the Try that itself returns a Try.
|
abstract <U> Try<U> |
Try.map(Function<? super T,? extends U> f)
Apply a function to the Try.
|
abstract <U> Try<U> |
Try.map(Function<? super T,? extends U> f)
Apply a function to the Try.
|
abstract Try<T> |
Try.mapFailure(Function<? super Throwable,? extends Throwable> f)
Map a failure by applying the exception mapping function.
|
abstract Try<T> |
Try.mapFailure(Function<? super Throwable,? extends Throwable> f)
Map a failure by applying the exception mapping function.
|
static <U> Try<U> |
Try.of(U value)
Create a Try from a value.
|
static <U> Try<U> |
Try.of(U value)
Create a Try from a value.
|
static <U> Try<U> |
Try.ofNonNull(U value,
String m)
A try with a null check.
|
static <U> Try<U> |
Try.ofNonNull(U value,
String m)
A try with a null check.
|
abstract Try<T> |
Try.onFailure(Consumer<? super Throwable> f) |
abstract Try<T> |
Try.onFailure(Consumer<? super Throwable> f) |
abstract Try<T> |
Try.onSuccess(Consumer<? super T> s) |
abstract Try<T> |
Try.onSuccess(Consumer<? super T> s) |
abstract <U> Try<U> |
Try.trying(Try.Func<? super T,? extends U,?> f)
Try a Function that might throw a Exception.
|
abstract <U> Try<U> |
Try.trying(Try.Func<? super T,? extends U,?> f)
Try a Function that might throw a Exception.
|
| Modifier and Type | Method and Description |
|---|---|
abstract <U> Try<U> |
Try.flatMap(Function<? super T,? extends Try<U>> f)
Apply a function to the Try that itself returns a Try.
|
abstract <U> Try<U> |
Try.flatMap(Function<? super T,? extends Try<U>> f)
Apply a function to the Try that itself returns a Try.
|
Copyright © 2023. All rights reserved.