Interface StaticDataSetDefBuilder<T extends DataSetDefBuilder>

  • All Superinterfaces:
    DataSetDefBuilder<T>
    All Known Implementing Classes:
    StaticDataSetDefBuilderImpl

    public interface StaticDataSetDefBuilder<T extends DataSetDefBuilder>
    extends DataSetDefBuilder<T>
    A builder for defining static data sets
       DataSetDef def = DataSetDefFactory.newStaticDataSetDef()
         .uuid("sales_per_year")
         .label("month")
         .number("2014")
         .number("2015")
         .number("2016")
         .row(JANUARY, 1000d, 2000d, 3000d)
         .row(FEBRUARY, 1400d, 2300d, 2000d)
         .row(MARCH, 1300d, 2000d, 1400d)
         .row(APRIL, 900d, 2100d, 1500d)
         .row(MAY, 1300d, 2300d, 1600d)
         .row(JUNE, 1010d, 2000d, 1500d)
         .row(JULY, 1050d, 2400d, 3000d)
         .row(AUGUST, 2300d, 2000d, 3200d)
         .row(SEPTEMBER, 1900d, 2700d, 3000d)
         .row(OCTOBER, 1200d, 2200d, 3100d)
         .row(NOVEMBER, 1400d, 2100d, 3100d)
         .row(DECEMBER, 1100d, 2100d, 4200d)
         .buildDef();
     
    • Method Detail

      • row

        T row​(Object... values)
        Add a row with the given values at the end of the data set.
        Returns:
        The DataSetDefBuilder instance that is being used to configure a DataSetDef.