Class CashFlowReport.Builder
- java.lang.Object
-
- org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CashFlowReport>
-
- com.opengamma.strata.report.cashflow.CashFlowReport.Builder
-
- All Implemented Interfaces:
org.joda.beans.BeanBuilder<CashFlowReport>
- Enclosing class:
- CashFlowReport
public static final class CashFlowReport.Builder extends org.joda.beans.impl.direct.DirectFieldsBeanBuilder<CashFlowReport>
The bean-builder forCashFlowReport
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CashFlowReport
build()
CashFlowReport.Builder
columnHeaders(String... columnHeaders)
Sets thecolumnHeaders
property in the builder from an array of objects.CashFlowReport.Builder
columnHeaders(List<String> columnHeaders)
Sets the column headers.CashFlowReport.Builder
columnKeys(ExplainKey<?>... columnKeys)
Sets thecolumnKeys
property in the builder from an array of objects.CashFlowReport.Builder
columnKeys(List<ExplainKey<?>> columnKeys)
Sets the keys corresponding to the columns.CashFlowReport.Builder
data(Table<Integer,Integer,Object> data)
Sets the cashflow data table.Object
get(String propertyName)
CashFlowReport.Builder
runInstant(Instant runInstant)
Sets the instant at which the report was run.CashFlowReport.Builder
set(String propertyName, Object newValue)
CashFlowReport.Builder
set(org.joda.beans.MetaProperty<?> property, Object value)
String
toString()
CashFlowReport.Builder
valuationDate(LocalDate valuationDate)
Sets the valuation date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
get
in interfaceorg.joda.beans.BeanBuilder<CashFlowReport>
- Overrides:
get
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CashFlowReport>
-
set
public CashFlowReport.Builder set(String propertyName, Object newValue)
-
set
public CashFlowReport.Builder set(org.joda.beans.MetaProperty<?> property, Object value)
- Specified by:
set
in interfaceorg.joda.beans.BeanBuilder<CashFlowReport>
- Overrides:
set
in classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CashFlowReport>
-
build
public CashFlowReport build()
-
valuationDate
public CashFlowReport.Builder valuationDate(LocalDate valuationDate)
Sets the valuation date.- Parameters:
valuationDate
- the new value, not null- Returns:
- this, for chaining, not null
-
runInstant
public CashFlowReport.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
-
columnKeys
public CashFlowReport.Builder columnKeys(List<ExplainKey<?>> columnKeys)
Sets the keys corresponding to the columns.- Parameters:
columnKeys
- the new value, not null- Returns:
- this, for chaining, not null
-
columnKeys
@SafeVarargs public final CashFlowReport.Builder columnKeys(ExplainKey<?>... columnKeys)
Sets thecolumnKeys
property in the builder from an array of objects.- Parameters:
columnKeys
- the new value, not null- Returns:
- this, for chaining, not null
-
columnHeaders
public CashFlowReport.Builder columnHeaders(List<String> columnHeaders)
Sets the column headers.- Parameters:
columnHeaders
- the new value, not null- Returns:
- this, for chaining, not null
-
columnHeaders
public CashFlowReport.Builder columnHeaders(String... columnHeaders)
Sets thecolumnHeaders
property in the builder from an array of objects.- Parameters:
columnHeaders
- the new value, not null- Returns:
- this, for chaining, not null
-
data
public CashFlowReport.Builder data(Table<Integer,Integer,Object> data)
Sets the cashflow data table.- 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<CashFlowReport>
-
-