Class 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 for TradeReport.
    • Method Detail

      • get

        public Object get​(String propertyName)
        Specified by:
        get in interface org.joda.beans.BeanBuilder<TradeReport>
        Overrides:
        get in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
      • set

        public TradeReport.Builder set​(org.joda.beans.MetaProperty<?> property,
                                       Object value)
        Specified by:
        set in interface org.joda.beans.BeanBuilder<TradeReport>
        Overrides:
        set in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>
      • 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 the columns property in the builder from an array of objects.
        Parameters:
        columns - the new value, not null
        Returns:
        this, for chaining, not null
      • toString

        public String toString()
        Overrides:
        toString in class org.joda.beans.impl.direct.DirectFieldsBeanBuilder<TradeReport>