T - You can define your own T as mentioned abovepublic class StrategyResult<T> extends Object implements Serializable
You can create your own object of type T. In case you want to convert your custom output to JSON or XML, you can use DataFormatHelper class to do the required transformation
| Modifier and Type | Field and Description |
|---|---|
static Comparator<StrategyResult> |
nameComparator |
| Constructor and Description |
|---|
StrategyResult() |
| Modifier and Type | Method and Description |
|---|---|
double |
getFrequency() |
T |
getResult() |
String |
getStrategyName() |
void |
setFrequency(double frequency) |
void |
setResult(T result) |
void |
setStrategyName(String stategyName) |
String |
toString() |
public static Comparator<StrategyResult> nameComparator
Copyright © 2016–2021. All rights reserved.