Record Class ExtensionGraphDto

java.lang.Object
java.lang.Record
com.djrapitops.plan.delivery.domain.datatransfer.extension.ExtensionGraphDto

public record ExtensionGraphDto(int providerId, String graphTableName, String displayName, XAxisType xAxisType, Integer xAxisSoftMin, Integer xAxisSoftMax, int yAxisSoftMin, int yAxisSoftMax, int columnCount, List<String> seriesLabels, List<String> unitNames, List<GraphFormatType> valueFormats, List<String> seriesColors, boolean supportsStacking, List<Number[]> dataPoints) extends Record
Represents extension graph point data and metadata for displaying a spline graph.
  • Constructor Details

    • ExtensionGraphDto

      public ExtensionGraphDto(int providerId, String graphTableName, String displayName, XAxisType xAxisType, int xAxisSoftMin, int xAxisSoftMax, int yAxisSoftMin, int yAxisSoftMax, int columnCount, boolean supportsStacking)
    • ExtensionGraphDto

      public ExtensionGraphDto(int providerId, String graphTableName, String displayName, XAxisType xAxisType, Integer xAxisSoftMin, Integer xAxisSoftMax, int yAxisSoftMin, int yAxisSoftMax, int columnCount, List<String> seriesLabels, List<String> unitNames, List<GraphFormatType> valueFormats, List<String> seriesColors, boolean supportsStacking, List<Number[]> dataPoints)
      Creates an instance of a ExtensionGraphDto record class.
      Parameters:
      providerId - the value for the providerId record component
      graphTableName - the value for the graphTableName record component
      displayName - the value for the displayName record component
      xAxisType - the value for the xAxisType record component
      xAxisSoftMin - the value for the xAxisSoftMin record component
      xAxisSoftMax - the value for the xAxisSoftMax record component
      yAxisSoftMin - the value for the yAxisSoftMin record component
      yAxisSoftMax - the value for the yAxisSoftMax record component
      columnCount - the value for the columnCount record component
      seriesLabels - the value for the seriesLabels record component
      unitNames - the value for the unitNames record component
      valueFormats - the value for the valueFormats record component
      seriesColors - the value for the seriesColors record component
      supportsStacking - the value for the supportsStacking record component
      dataPoints - the value for the dataPoints record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • providerId

      public int providerId()
      Returns the value of the providerId record component.
      Returns:
      the value of the providerId record component
    • graphTableName

      public String graphTableName()
      Returns the value of the graphTableName record component.
      Returns:
      the value of the graphTableName record component
    • displayName

      public String displayName()
      Returns the value of the displayName record component.
      Returns:
      the value of the displayName record component
    • xAxisType

      public XAxisType xAxisType()
      Returns the value of the xAxisType record component.
      Returns:
      the value of the xAxisType record component
    • xAxisSoftMin

      public Integer xAxisSoftMin()
      Returns the value of the xAxisSoftMin record component.
      Returns:
      the value of the xAxisSoftMin record component
    • xAxisSoftMax

      public Integer xAxisSoftMax()
      Returns the value of the xAxisSoftMax record component.
      Returns:
      the value of the xAxisSoftMax record component
    • yAxisSoftMin

      public int yAxisSoftMin()
      Returns the value of the yAxisSoftMin record component.
      Returns:
      the value of the yAxisSoftMin record component
    • yAxisSoftMax

      public int yAxisSoftMax()
      Returns the value of the yAxisSoftMax record component.
      Returns:
      the value of the yAxisSoftMax record component
    • columnCount

      public int columnCount()
      Returns the value of the columnCount record component.
      Returns:
      the value of the columnCount record component
    • seriesLabels

      public List<String> seriesLabels()
      Returns the value of the seriesLabels record component.
      Returns:
      the value of the seriesLabels record component
    • unitNames

      public List<String> unitNames()
      Returns the value of the unitNames record component.
      Returns:
      the value of the unitNames record component
    • valueFormats

      public List<GraphFormatType> valueFormats()
      Returns the value of the valueFormats record component.
      Returns:
      the value of the valueFormats record component
    • seriesColors

      public List<String> seriesColors()
      Returns the value of the seriesColors record component.
      Returns:
      the value of the seriesColors record component
    • supportsStacking

      public boolean supportsStacking()
      Returns the value of the supportsStacking record component.
      Returns:
      the value of the supportsStacking record component
    • dataPoints

      public List<Number[]> dataPoints()
      Returns the value of the dataPoints record component.
      Returns:
      the value of the dataPoints record component