Class TradeReport.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
-
- com.opengamma.strata.report.trade.TradeReport.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<TradeReport>
- Enclosing class:
- TradeReport
public static final class TradeReport.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
The bean-builder forTradeReport
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TradeReport
build()
TradeReport.Builder
columns(TradeReportColumn... columns)
Sets thecolumns
property in the builder from an array of objects.TradeReport.Builder
columns(List<TradeReportColumn> columns)
Sets the report columns, which may contain information required for formatting.TradeReport.Builder
data(Table<Integer,Integer,Result<?>> data)
Sets the calculation results.Object
get(String propertyName)
TradeReport.Builder
runInstant(Instant runInstant)
Sets the instant at which the report was run.TradeReport.Builder
set(String propertyName, Object newValue)
TradeReport.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
TradeReport.Builder
valuationDate(LocalDate valuationDate)
Sets the valuation date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<TradeReport>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
-
set
public TradeReport.Builder set(String propertyName, Object newValue)
-
set
public TradeReport.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<TradeReport>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
-
build
public TradeReport build()
-
valuationDate
public TradeReport.Builder valuationDate(LocalDate valuationDate)
Sets the valuation date.- Parameters:
valuationDate
- the new value, not null- Returns:
- this, for chaining, not null
-
runInstant
public TradeReport.Builder runInstant(Instant runInstant)
Sets the instant at which the report was run.- Parameters:
runInstant
- the new value, not null- Returns:
- this, for chaining, not null
-
columns
public TradeReport.Builder columns(List<TradeReportColumn> columns)
Sets the report columns, which may contain information required for formatting.- Parameters:
columns
- the new value, not null- Returns:
- this, for chaining, not null
-
columns
public TradeReport.Builder columns(TradeReportColumn... columns)
Sets thecolumns
property in the builder from an array of objects.- Parameters:
columns
- the new value, not null- Returns:
- this, for chaining, not null
-
data
public TradeReport.Builder data(Table<Integer,Integer,Result<?>> data)
Sets the calculation results.- Parameters:
data
- the new value, not null- Returns:
- this, for chaining, not null
-
toString
public String toString()
- Overrides:
toString
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
-
-