| Package | Description |
|---|---|
| com.opengamma.strata.collect.result |
Result data structures.
|
| Modifier and Type | Method and Description |
|---|---|
<U,R> ValueWithFailures<R> |
ValueWithFailures.combinedWith(ValueWithFailures<U> other,
BiFunction<T,U,R> combiner)
Combines this instance with another.
|
static <T> ValueWithFailures<List<T>> |
ValueWithFailures.combineValuesAsList(Iterable<? extends ValueWithFailures<? extends T>> items)
Combines separate instances of
ValueWithFailure into a single instance,
using a list to collect the values. |
static <T> ValueWithFailures<Set<T>> |
ValueWithFailures.combineValuesAsSet(Iterable<? extends ValueWithFailures<? extends T>> items)
Combines separate instances of
ValueWithFailure into a single instance,
using a set to collect the values. |
<R> ValueWithFailures<R> |
ValueWithFailures.flatMap(Function<? super T,ValueWithFailures<R>> function)
Processes the value by applying a function that returns another result.
|
<R> ValueWithFailures<R> |
ValueWithFailures.map(Function<? super T,? extends R> function)
Processes the value by applying a function that alters the value.
|
static <T> ValueWithFailures<T> |
ValueWithFailures.of(T successValue,
Collection<FailureItem> failures)
Creates an instance wrapping the success value and failures.
|
static <T> ValueWithFailures<T> |
ValueWithFailures.of(T successValue,
FailureItem... failures)
Creates an instance wrapping the success value and failures.
|
static <T> ValueWithFailures<T> |
ValueWithFailures.of(T successValue,
List<FailureItem> failures)
Creates an instance wrapping the success value and failures.
|
static <T> ValueWithFailures<T> |
ValueWithFailures.of(T emptyValue,
Supplier<T> supplier)
Creates an instance using a supplier.
|
ValueWithFailures<T> |
ValueWithFailures.withAdditionalFailures(List<FailureItem> additionalFailures)
Returns a new instance with the specified failures, retaining the current value.
|
<R> ValueWithFailures<R> |
ValueWithFailures.withValue(R value)
Returns a new instance with the specified value, retaining the current failures.
|
<R> ValueWithFailures<R> |
ValueWithFailures.withValue(R value,
List<FailureItem> additionalFailures)
Returns a new instance with the specified value, combining the failures.
|
<R> ValueWithFailures<R> |
ValueWithFailures.withValue(ValueWithFailures<R> valueWithFailures)
Returns a new instance with the specified value, combining the failures.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ValueWithFailures<T>> |
ValueWithFailures.Meta.beanType() |
org.joda.beans.BeanBuilder<? extends ValueWithFailures<T>> |
ValueWithFailures.Meta.builder() |
static <T> BinaryOperator<ValueWithFailures<T>> |
ValueWithFailures.combiningValues(BinaryOperator<T> combiner)
Returns a
BinaryOperator that combines ValueWithFailures objects using the provided combiner
function. |
static <T> Collector<ValueWithFailures<? extends T>,?,ValueWithFailures<List<T>>> |
ValueWithFailures.toCombinedValuesAsList()
Returns a collector that creates a combined
ValueWithFailure from a stream
of separate instances, combining into an immutable list. |
static <T> Collector<ValueWithFailures<? extends T>,?,ValueWithFailures<List<T>>> |
ValueWithFailures.toCombinedValuesAsList()
Returns a collector that creates a combined
ValueWithFailure from a stream
of separate instances, combining into an immutable list. |
static <T> Collector<ValueWithFailures<? extends T>,?,ValueWithFailures<Set<T>>> |
ValueWithFailures.toCombinedValuesAsSet()
Returns a collector that creates a combined
ValueWithFailure from a stream
of separate instances, combining into an immutable set. |
static <T> Collector<ValueWithFailures<? extends T>,?,ValueWithFailures<Set<T>>> |
ValueWithFailures.toCombinedValuesAsSet()
Returns a collector that creates a combined
ValueWithFailure from a stream
of separate instances, combining into an immutable set. |
static <T> Collector<ValueWithFailures<T>,?,ValueWithFailures<T>> |
ValueWithFailures.toValueWithFailures(T identityValue,
BinaryOperator<T> operator)
Returns a collector that can be used to create a combined
ValueWithFailure
from a stream of separate instances. |
static <T> Collector<ValueWithFailures<T>,?,ValueWithFailures<T>> |
ValueWithFailures.toValueWithFailures(T identityValue,
BinaryOperator<T> operator)
Returns a collector that can be used to create a combined
ValueWithFailure
from a stream of separate instances. |
| Modifier and Type | Method and Description |
|---|---|
<U,R> ValueWithFailures<R> |
ValueWithFailures.combinedWith(ValueWithFailures<U> other,
BiFunction<T,U,R> combiner)
Combines this instance with another.
|
<R> ValueWithFailures<R> |
ValueWithFailures.withValue(ValueWithFailures<R> valueWithFailures)
Returns a new instance with the specified value, combining the failures.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> ValueWithFailures<List<T>> |
ValueWithFailures.combineValuesAsList(Iterable<? extends ValueWithFailures<? extends T>> items)
Combines separate instances of
ValueWithFailure into a single instance,
using a list to collect the values. |
static <T> ValueWithFailures<Set<T>> |
ValueWithFailures.combineValuesAsSet(Iterable<? extends ValueWithFailures<? extends T>> items)
Combines separate instances of
ValueWithFailure into a single instance,
using a set to collect the values. |
<R> ValueWithFailures<R> |
ValueWithFailures.flatMap(Function<? super T,ValueWithFailures<R>> function)
Processes the value by applying a function that returns another result.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.