Uses of Class
com.opengamma.strata.collect.result.ValueWithFailures
-
Packages that use ValueWithFailures Package Description com.opengamma.strata.collect.result Result data structures.com.opengamma.strata.loader.csv Loader that reads market data from CSV files. -
-
Uses of ValueWithFailures in com.opengamma.strata.collect.result
Methods in com.opengamma.strata.collect.result that return ValueWithFailures Modifier and Type Method 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 ofValueWithFailure
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 ofValueWithFailure
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.ValueWithFailures<T>
ValueWithFailures. mapFailures(Function<FailureItem,FailureItem> function)
Processes the value by applying a function that alters the 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, Collection<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.static <T> ValueWithFailures<T>
ValueWithFailures. of(T successValue, List<FailureItem> failures)
Creates an instance wrapping the success value and failures.ValueWithFailures<T>
ValueWithFailures. withAdditionalFailures(List<FailureItem> additionalFailures)
Returns a new instance with the specified failures, retaining the current value.<R> ValueWithFailures<R>
ValueWithFailures. withValue(ValueWithFailures<R> valueWithFailures)
Returns a new instance with the specified value, combining the failures.<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.Methods in com.opengamma.strata.collect.result that return types with arguments of type ValueWithFailures Modifier and Type Method 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 aBinaryOperator
that combinesValueWithFailures
objects using the provided combiner function.static <T> Collector<Result<? extends T>,?,ValueWithFailures<List<T>>>
ValueWithFailures. toCombinedResultsAsList()
Returns a collector that can be used to create a combinedValueWithFailure
from a stream ofResult
instances.static <T> Collector<ValueWithFailures<? extends T>,?,ValueWithFailures<List<T>>>
ValueWithFailures. toCombinedValuesAsList()
Returns a collector that creates a combinedValueWithFailure
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 combinedValueWithFailure
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 combinedValueWithFailure
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 combinedValueWithFailure
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 combinedValueWithFailure
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 combinedValueWithFailure
from a stream of separate instances.Methods in com.opengamma.strata.collect.result with parameters of type ValueWithFailures Modifier and Type Method 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.Method parameters in com.opengamma.strata.collect.result with type arguments of type ValueWithFailures Modifier and Type Method Description static <T> ValueWithFailures<List<T>>
ValueWithFailures. combineValuesAsList(Iterable<? extends ValueWithFailures<? extends T>> items)
Combines separate instances ofValueWithFailure
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 ofValueWithFailure
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. -
Uses of ValueWithFailures in com.opengamma.strata.loader.csv
Methods in com.opengamma.strata.loader.csv that return ValueWithFailures Modifier and Type Method Description ValueWithFailures<List<Position>>
PositionCsvLoader. load(ResourceLocator... resources)
Loads one or more CSV format position files.ValueWithFailures<List<Position>>
PositionCsvLoader. load(Collection<ResourceLocator> resources)
Loads one or more CSV format position files.ValueWithFailures<ListMultimap<String,CurveSensitivities>>
SensitivityCsvLoader. load(Collection<ResourceLocator> resources)
Loads one or more CSV format sensitivities files.ValueWithFailures<List<Trade>>
TradeCsvLoader. load(ResourceLocator... resources)
Loads one or more CSV format trade files.ValueWithFailures<List<Trade>>
TradeCsvLoader. load(Collection<ResourceLocator> resources)
Loads one or more CSV format trade files.ValueWithFailures<List<Position>>
PositionCsvLoader. parse(Collection<CharSource> charSources)
Parses one or more CSV format position files, returning ETD futures and options using information from reference data.<T extends Position>
ValueWithFailures<List<T>>PositionCsvLoader. parse(Collection<CharSource> charSources, Class<T> positionType)
Parses one or more CSV format position files.ValueWithFailures<ListMultimap<String,CurveSensitivities>>
SensitivityCsvLoader. parse(Collection<CharSource> charSources)
Parses one or more CSV format position files, returning sensitivities.ValueWithFailures<List<Trade>>
TradeCsvLoader. parse(Collection<CharSource> charSources)
Parses one or more CSV format trade files.<T extends Trade>
ValueWithFailures<List<T>>TradeCsvLoader. parse(Collection<CharSource> charSources, Class<T> tradeType)
Parses one or more CSV format trade files with a quiet type filter.ValueWithFailures<List<Trade>>
TradeCsvLoader. parse(Collection<CharSource> charSources, List<Class<? extends Trade>> tradeTypes)
Parses one or more CSV format trade files with an error-creating type filter.ValueWithFailures<CurveSensitivities>
SensitivityCsvLoader. parseAndMerge(Collection<CharSource> charSources)
Parses one or more CSV format position files, merging the result to a single sensitivities instance.ValueWithFailures<List<SecurityPosition>>
PositionCsvLoader. parseLightweight(Collection<CharSource> charSources)
Deprecated.UseLightweightPositionCsvInfoResolver
instead
-