Uses of Class
com.opengamma.strata.collect.result.Result
-
Packages that use Result Package Description com.opengamma.strata.calc Calculates risk measures on trades, applies scenarios and manages market data.com.opengamma.strata.calc.marketdata Provides the ability to obtain market data and perform calibrations and scenario perturbations.com.opengamma.strata.calc.runner The calculation runner.com.opengamma.strata.collect.result Result data structures.com.opengamma.strata.measure.bond Base package for calculation functions.com.opengamma.strata.measure.capfloor Calculation functions for Ibor cap/floor products.com.opengamma.strata.measure.cms Calculation functions for constant maturity swap (CMS) products.com.opengamma.strata.measure.credit Calculation functions for credit products.com.opengamma.strata.measure.deposit Calculation functions for deposit products.com.opengamma.strata.measure.dsf Calculation functions for DSF products.com.opengamma.strata.measure.fra Calculation functions for FRA products.com.opengamma.strata.measure.fx Calculation functions for FX products.com.opengamma.strata.measure.fxopt Calculation functions for FX option products.com.opengamma.strata.measure.index Calculation functions for index products.com.opengamma.strata.measure.payment Calculation functions for payment products.com.opengamma.strata.measure.security Calculation functions for futures products.com.opengamma.strata.measure.swap Calculation functions for swap products.com.opengamma.strata.measure.swaption Calculation functions for swaption products.com.opengamma.strata.report.framework.expression Provide the ability to extract data using textual expressions.com.opengamma.strata.report.trade Types for reporting and formatting trades. -
-
Uses of Result in com.opengamma.strata.calc
Methods in com.opengamma.strata.calc that return Result Modifier and Type Method Description Result<?>
Results. get(int rowIndex, int columnIndex)
Returns the results for a target and column index.<T> Result<T>
Results. get(int rowIndex, int columnIndex, Class<T> type)
Returns the results for a target and column index, casting the result to a known type.Result<?>
Results. get(int rowIndex, ColumnName columnName)
Returns the results for a target and column name.<T> Result<T>
Results. get(int rowIndex, ColumnName columnName, Class<T> type)
Returns the results for a target and column name, casting the result to a known type.<C> Result<ScenarioArray<C>>
Results. getScenarios(int rowIndex, int columnIndex, Class<C> componentType)
Returns multi-scenario results for a target and column index, casting the result to a known type.<C> Result<ScenarioArray<C>>
Results. getScenarios(int rowIndex, ColumnName columnName, Class<C> componentType)
Returns multi-scenario results for a target and column name, casting the result to a known type.Methods in com.opengamma.strata.calc that return types with arguments of type Result Modifier and Type Method Description org.joda.beans.MetaProperty<ImmutableList<Result<?>>>
Results.Meta. cells()
The meta-property for thecells
property.<T> Stream<Result<?>>
Results. columnResults(int columnIndex)
Returns a stream of results for a single column by column index.<T> Stream<Result<T>>
Results. columnResults(int columnIndex, Class<T> type)
Returns a stream of results for a single column by column index.<C> Stream<Result<ScenarioArray<C>>>
Results. columnResultsScenarios(int columnIndex, Class<C> componentType)
Returns a stream of multi-scenario results for a single column by column index.ImmutableList<Result<?>>
Results. getCells()
Gets the grid of results, stored as a flat list. -
Uses of Result in com.opengamma.strata.calc.marketdata
Methods in com.opengamma.strata.calc.marketdata that return Result Modifier and Type Method Description Result<LocalDateDoubleTimeSeries>
TimeSeriesProvider. provideTimeSeries(ObservableId identifier)
Provides the time-series for the specified identifier.Methods in com.opengamma.strata.calc.marketdata that return types with arguments of type Result Modifier and Type Method Description Map<ObservableId,Result<Double>>
ObservableDataProvider. provideObservableData(Set<? extends ObservableId> identifiers)
Provides market data for the specified identifiers. -
Uses of Result in com.opengamma.strata.calc.runner
Methods in com.opengamma.strata.calc.runner that return Result Modifier and Type Method Description Result<?>
CalculationResult. getResult()
Gets the result of the calculation.<T> Result<T>
CalculationResult. getResult(Class<T> type)
Gets the result of the calculation, casting the result to a known type.Methods in com.opengamma.strata.calc.runner that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
CalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData marketData, ReferenceData refData)
Calculates values of multiple measures for the target using multiple sets of market data.Methods in com.opengamma.strata.calc.runner with parameters of type Result Modifier and Type Method Description static CalculationResult
CalculationResult. of(int rowIndex, int columnIndex, Result<?> result)
Obtains an instance for the specified row and column index in the output grid.CalculationResult
CalculationResult. withResult(Result<?> underlyingResult)
Returns a copy of this result with the underlying result updated.Method parameters in com.opengamma.strata.calc.runner with type arguments of type Result Modifier and Type Method Description static void
FunctionUtils. duplicateResult(Measure existingKey, Measure newKey, Map<Measure,Result<?>> mutableMeasureMap)
Checks if a map of results contains a value for a key, and if it does inserts it into the map for a different key. -
Uses of Result in com.opengamma.strata.collect.result
Methods in com.opengamma.strata.collect.result that return Result Modifier and Type Method Description static <T,R>
Result<R>Result. combine(Iterable<? extends Result<T>> results, Function<Stream<T>,R> function)
Takes a collection of results, checks if all of them are successes and then applies the supplied function to the successes wrapping the result in a success result.<U,R>
Result<R>Result. combineWith(Result<U> other, BiFunction<T,U,Result<R>> function)
Combines this result with another result.static <R> Result<R>
Result. failure(Failure failure)
Creates a failed result containing a failure.static <R> Result<R>
Result. failure(FailureItem failureItem)
Creates a failed result containing a failure item.static <R> Result<R>
Result. failure(FailureReason reason, Exception cause)
Creates a failed result caused by an exception with a specified reason.static <R> Result<R>
Result. failure(FailureReason reason, Exception cause, String message, Object... messageArgs)
Creates a failed result caused by an exception with a specified reason and message.static <R> Result<R>
Result. failure(FailureReason reason, String message, Object... messageArgs)
Creates a failed result specifying the failure reason.static <R> Result<R>
Result. failure(FailureReason reason, Throwable cause)
Creates a failed result caused by a throwable with a specified reason.static <R> Result<R>
Result. failure(FailureReason reason, Throwable cause, String message, Object... messageArgs)
Creates a failed result caused by a throwable with a specified reason and message.static <R> Result<R>
Result. failure(Result<?> failureResult)
Returns a failed result from another failed result.static <R> Result<R>
Result. failure(Result<?> result1, Result<?> result2, Result<?>... results)
Creates a failed result combining multiple failed results.static <R> Result<R>
Result. failure(Exception cause)
Creates a failed result caused by an exception.static <R> Result<R>
Result. failure(Exception cause, String message, Object... messageArgs)
Creates a failed result caused by an exception.static <R> Result<R>
Result. failure(Iterable<? extends Result<?>> results)
Creates a failed result combining multiple failed results.static <R> Result<R>
Result. failure(Throwable cause)
Creates a failed result caused by a throwable.static <R> Result<R>
Result. failure(Throwable cause, String message, Object... messageArgs)
Creates a failed result caused by a throwable.static <T,R>
Result<R>Result. flatCombine(Iterable<? extends Result<T>> results, Function<Stream<T>,Result<R>> function)
Takes a collection of results, checks if all of them are successes and then applies the supplied function to the successes.<R> Result<R>
Result. flatMap(Function<? super T,Result<R>> function)
Processes a successful result by applying a function that returns another result.<R> Result<R>
Result. map(Function<? super T,? extends R> function)
Processes a successful result by applying a function that alters the value.Result<T>
Result. mapFailure(Function<Failure,Failure> function)
Processes a failed result by applying a function that alters the failure.Result<T>
Result. mapFailureItems(Function<FailureItem,FailureItem> function)
Processes a failed result by applying a function that alters the failure items.static <T> Result<T>
Result. of(Supplier<T> supplier)
Creates a successResult
wrapping the value produced by the supplier.static <R> Result<R>
Result. ofNullable(R value)
Returns a success result containing the value if it is non-null, else returns a failure result with a reason ofFailureReason.MISSING_DATA
and message to say an unexpected null was found.static <R> Result<R>
Result. ofNullable(R value, FailureReason reason, String message, Object... messageArgs)
Returns a success result containing the value if it is non-null, else returns a failure result with the specified reason and message.static <R> Result<R>
Result. success(R value)
Creates a successful result wrapping a value.static <T> Result<T>
Result. wrap(Supplier<Result<T>> supplier)
Creates aResult
wrapping the result produced by the supplier.Methods in com.opengamma.strata.collect.result that return types with arguments of type Result Modifier and Type Method Description Class<? extends Result<T>>
Result.Meta. beanType()
org.joda.beans.BeanBuilder<? extends Result<T>>
Result.Meta. builder()
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.Methods in com.opengamma.strata.collect.result with parameters of type Result Modifier and Type Method Description static boolean
Result. allSuccessful(Result<?>... results)
Checks if all the results are successful.static boolean
Result. anyFailures(Result<?>... results)
Checks if any of the results are failures.<U,R>
Result<R>Result. combineWith(Result<U> other, BiFunction<T,U,Result<R>> function)
Combines this result with another result.static long
Result. countFailures(Result<?>... results)
Counts how many of the results are failures.static <R> Result<R>
Result. failure(Result<?> failureResult)
Returns a failed result from another failed result.static <R> Result<R>
Result. failure(Result<?> result1, Result<?> result2, Result<?>... results)
Creates a failed result combining multiple failed results.Method parameters in com.opengamma.strata.collect.result with type arguments of type Result Modifier and Type Method Description static boolean
Result. allSuccessful(Iterable<? extends Result<?>> results)
Checks if all the results are successful.static boolean
Result. anyFailures(Iterable<? extends Result<?>> results)
Checks if any of the results are failures.static <T,R>
Result<R>Result. combine(Iterable<? extends Result<T>> results, Function<Stream<T>,R> function)
Takes a collection of results, checks if all of them are successes and then applies the supplied function to the successes wrapping the result in a success result.<U,R>
Result<R>Result. combineWith(Result<U> other, BiFunction<T,U,Result<R>> function)
Combines this result with another result.static long
Result. countFailures(Iterable<? extends Result<?>> results)
Counts how many of the results are failures.static <R> Result<R>
Result. failure(Iterable<? extends Result<?>> results)
Creates a failed result combining multiple failed results.static <T,R>
Result<R>Result. flatCombine(Iterable<? extends Result<T>> results, Function<Stream<T>,Result<R>> function)
Takes a collection of results, checks if all of them are successes and then applies the supplied function to the successes.static <T,R>
Result<R>Result. flatCombine(Iterable<? extends Result<T>> results, Function<Stream<T>,Result<R>> function)
Takes a collection of results, checks if all of them are successes and then applies the supplied function to the successes.<R> Result<R>
Result. flatMap(Function<? super T,Result<R>> function)
Processes a successful result by applying a function that returns another result.static <T> Result<T>
Result. wrap(Supplier<Result<T>> supplier)
Creates aResult
wrapping the result produced by the supplier. -
Uses of Result in com.opengamma.strata.measure.bond
Methods in com.opengamma.strata.measure.bond that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
BillTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
BondFutureOptionTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
BondFutureTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
CapitalIndexedBondTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
FixedCouponBondTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.capfloor
Methods in com.opengamma.strata.measure.capfloor that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
IborCapFloorTradeCalculationFunction. calculate(IborCapFloorTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.cms
Methods in com.opengamma.strata.measure.cms that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
CmsTradeCalculationFunction. calculate(CmsTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.credit
Methods in com.opengamma.strata.measure.credit that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
CdsIndexTradeCalculationFunction. calculate(CdsIndexTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
CdsTradeCalculationFunction. calculate(CdsTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.deposit
Methods in com.opengamma.strata.measure.deposit that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
TermDepositTradeCalculationFunction. calculate(TermDepositTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.dsf
Methods in com.opengamma.strata.measure.dsf that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
DsfTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.fra
Methods in com.opengamma.strata.measure.fra that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
FraTradeCalculationFunction. calculate(FraTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.fx
Methods in com.opengamma.strata.measure.fx that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
FxNdfTradeCalculationFunction. calculate(FxNdfTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
FxSingleTradeCalculationFunction. calculate(FxSingleTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
FxSwapTradeCalculationFunction. calculate(FxSwapTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.fxopt
Methods in com.opengamma.strata.measure.fxopt that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
FxSingleBarrierOptionTradeCalculationFunction. calculate(FxSingleBarrierOptionTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
FxVanillaOptionTradeCalculationFunction. calculate(FxVanillaOptionTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.index
Methods in com.opengamma.strata.measure.index that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
IborFutureOptionTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
IborFutureTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
OvernightFutureTradeCalculationFunction. calculate(T target, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.payment
Methods in com.opengamma.strata.measure.payment that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
BulletPaymentTradeCalculationFunction. calculate(BulletPaymentTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.security
Methods in com.opengamma.strata.measure.security that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
GenericSecurityPositionCalculationFunction. calculate(GenericSecurityPosition position, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
GenericSecurityTradeCalculationFunction. calculate(GenericSecurityTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
SecurityPositionCalculationFunction. calculate(SecurityPosition position, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
Map<Measure,Result<?>>
SecurityTradeCalculationFunction. calculate(SecurityTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.swap
Methods in com.opengamma.strata.measure.swap that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
SwapTradeCalculationFunction. calculate(SwapTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.measure.swaption
Methods in com.opengamma.strata.measure.swaption that return types with arguments of type Result Modifier and Type Method Description Map<Measure,Result<?>>
SwaptionTradeCalculationFunction. calculate(SwaptionTrade trade, Set<Measure> measures, CalculationParameters parameters, ScenarioMarketData scenarioMarketData, ReferenceData refData)
-
Uses of Result in com.opengamma.strata.report.framework.expression
Methods in com.opengamma.strata.report.framework.expression that return Result Modifier and Type Method Description Result<?>
EvaluationResult. getResult()
Returns the result of evaluating the expression against the object.Methods in com.opengamma.strata.report.framework.expression that return types with arguments of type Result Modifier and Type Method Description static List<Result<?>>
ValuePathEvaluator. evaluate(String valuePath, ReportCalculationResults results)
Evaluates a value path against a set of results, returning the resolved result for each trade.Methods in com.opengamma.strata.report.framework.expression with parameters of type Result Modifier and Type Method Description static EvaluationResult
EvaluationResult. of(Result<?> result, List<String> remainingTokens)
Creates the result of evaluating a token against an object. -
Uses of Result in com.opengamma.strata.report.trade
Methods in com.opengamma.strata.report.trade that return types with arguments of type Result Modifier and Type Method Description org.joda.beans.MetaProperty<ImmutableTable<Integer,Integer,Result<?>>>
TradeReport.Meta. data()
The meta-property for thedata
property.ImmutableTable<Integer,Integer,Result<?>>
TradeReport. getData()
Gets the calculation results.Method parameters in com.opengamma.strata.report.trade with type arguments of type Result Modifier and Type Method Description TradeReport.Builder
TradeReport.Builder. data(Table<Integer,Integer,Result<?>> data)
Sets the calculation results.
-