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 CashFlowReportbuild()CashFlowReport.BuildercolumnHeaders(String... columnHeaders)Sets thecolumnHeadersproperty in the builder from an array of objects.CashFlowReport.BuildercolumnHeaders(List<String> columnHeaders)Sets the column headers.CashFlowReport.BuildercolumnKeys(ExplainKey<?>... columnKeys)Sets thecolumnKeysproperty in the builder from an array of objects.CashFlowReport.BuildercolumnKeys(List<ExplainKey<?>> columnKeys)Sets the keys corresponding to the columns.CashFlowReport.Builderdata(Table<Integer,Integer,Object> data)Sets the cashflow data table.Objectget(String propertyName)CashFlowReport.BuilderrunInstant(Instant runInstant)Sets the instant at which the report was run.CashFlowReport.Builderset(String propertyName, Object newValue)CashFlowReport.Builderset(org.joda.beans.MetaProperty<?> property, Object value)StringtoString()CashFlowReport.BuildervaluationDate(LocalDate valuationDate)Sets the valuation date.
-
-
-
Method Detail
-
get
public Object get(String propertyName)
- Specified by:
getin interfaceorg.joda.beans.BeanBuilder<CashFlowReport>- Overrides:
getin 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:
setin interfaceorg.joda.beans.BeanBuilder<CashFlowReport>- Overrides:
setin 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 thecolumnKeysproperty 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 thecolumnHeadersproperty 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:
toStringin classorg.joda.beans.impl.direct.DirectFieldsBeanBuilder<CashFlowReport>
-
-