Record Class Version.CreateDatabaseConfig
java.lang.Object
java.lang.Record
io.openems.edge.timedata.rrd4j.version.Version.CreateDatabaseConfig
- Enclosing interface:
Version
-
Constructor Summary
ConstructorDescriptionCreateDatabaseConfig
(String rrdDbId, Unit channelUnit, String path, long startTime, org.rrd4j.core.RrdBackendFactory factory, org.rrd4j.core.RrdDbPool pool) Creates an instance of aCreateDatabaseConfig
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechannelUnit
record component.final boolean
Indicates whether some other object is "equal to" this one.org.rrd4j.core.RrdBackendFactory
factory()
Returns the value of thefactory
record component.final int
hashCode()
Returns a hash code value for this object.path()
Returns the value of thepath
record component.org.rrd4j.core.RrdDbPool
pool()
Returns the value of thepool
record component.rrdDbId()
Returns the value of therrdDbId
record component.long
Returns the value of thestartTime
record component.final String
toString()
Returns a string representation of this record class.withPool
(org.rrd4j.core.RrdDbPool pool) Returns a newVersion.CreateDatabaseConfig
with the given pool and the other attributes copied from this instance.withStartTime
(long startTime) Returns a newVersion.CreateDatabaseConfig
with the given start time and the other attributes copied from this instance.
-
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 aCreateDatabaseConfig
record class.- Parameters:
rrdDbId
- the value for therrdDbId
record componentchannelUnit
- the value for thechannelUnit
record componentpath
- the value for thepath
record componentstartTime
- the value for thestartTime
record componentfactory
- the value for thefactory
record componentpool
- the value for thepool
record component
-
-
Method Details
-
withStartTime
Returns a newVersion.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
Returns a newVersion.CreateDatabaseConfig
with the given pool and the other attributes copied from this instance.- Parameters:
pool
- the new pool- Returns:
- the new
Version.CreateDatabaseConfig
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
rrdDbId
Returns the value of therrdDbId
record component.- Returns:
- the value of the
rrdDbId
record component
-
channelUnit
Returns the value of thechannelUnit
record component.- Returns:
- the value of the
channelUnit
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
startTime
public long startTime()Returns the value of thestartTime
record component.- Returns:
- the value of the
startTime
record component
-
factory
public org.rrd4j.core.RrdBackendFactory factory()Returns the value of thefactory
record component.- Returns:
- the value of the
factory
record component
-
pool
public org.rrd4j.core.RrdDbPool pool()Returns the value of thepool
record component.- Returns:
- the value of the
pool
record component
-