Record Class Version.CreateDatabaseConfig

java.lang.Object
java.lang.Record
io.openems.edge.timedata.rrd4j.version.Version.CreateDatabaseConfig
Enclosing interface:
Version

public static record Version.CreateDatabaseConfig(String rrdDbId, Unit channelUnit, String path, long startTime, org.rrd4j.core.RrdBackendFactory factory, org.rrd4j.core.RrdDbPool pool) extends Record
  • Constructor Details

    • CreateDatabaseConfig

      public CreateDatabaseConfig(String rrdDbId, Unit channelUnit, String path, long startTime, org.rrd4j.core.RrdBackendFactory factory, org.rrd4j.core.RrdDbPool pool)
      Creates an instance of a CreateDatabaseConfig record class.
      Parameters:
      rrdDbId - the value for the rrdDbId record component
      channelUnit - the value for the channelUnit record component
      path - the value for the path record component
      startTime - the value for the startTime record component
      factory - the value for the factory record component
      pool - the value for the pool record component
  • Method Details

    • withStartTime

      public Version.CreateDatabaseConfig withStartTime(long startTime)
      Returns a new Version.CreateDatabaseConfig with the given start time and the other attributes copied from this instance.
      Parameters:
      startTime - the new start time
      Returns:
      the new Version.CreateDatabaseConfig
    • withPool

      public Version.CreateDatabaseConfig withPool(org.rrd4j.core.RrdDbPool pool)
      Returns a new Version.CreateDatabaseConfig with the given pool and the other attributes copied from this instance.
      Parameters:
      pool - the new pool
      Returns:
      the new Version.CreateDatabaseConfig
    • 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 '=='.
      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.
    • rrdDbId

      public String rrdDbId()
      Returns the value of the rrdDbId record component.
      Returns:
      the value of the rrdDbId record component
    • channelUnit

      public Unit channelUnit()
      Returns the value of the channelUnit record component.
      Returns:
      the value of the channelUnit record component
    • path

      public String path()
      Returns the value of the path record component.
      Returns:
      the value of the path record component
    • startTime

      public long startTime()
      Returns the value of the startTime record component.
      Returns:
      the value of the startTime record component
    • factory

      public org.rrd4j.core.RrdBackendFactory factory()
      Returns the value of the factory record component.
      Returns:
      the value of the factory record component
    • pool

      public org.rrd4j.core.RrdDbPool pool()
      Returns the value of the pool record component.
      Returns:
      the value of the pool record component