Package io.openems.edge.timedata.rrd4j
Record Class ChannelDef
java.lang.Object
java.lang.Record
io.openems.edge.timedata.rrd4j.ChannelDef
public record ChannelDef(org.rrd4j.DsType dsType, double minValue, double maxValue, org.rrd4j.ConsolFun consolFun)
extends Record
-
Constructor Summary
ConstructorDescriptionChannelDef
(org.rrd4j.DsType dsType, double minValue, double maxValue, org.rrd4j.ConsolFun consolFun) Creates an instance of aChannelDef
record class. -
Method Summary
Modifier and TypeMethodDescriptionorg.rrd4j.ConsolFun
Returns the value of theconsolFun
record component.org.rrd4j.DsType
dsType()
Returns the value of thedsType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
maxValue()
Returns the value of themaxValue
record component.double
minValue()
Returns the value of theminValue
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ChannelDef
public ChannelDef(org.rrd4j.DsType dsType, double minValue, double maxValue, org.rrd4j.ConsolFun consolFun) Creates an instance of aChannelDef
record class.- Parameters:
dsType
- the value for thedsType
record componentminValue
- the value for theminValue
record componentmaxValue
- the value for themaxValue
record componentconsolFun
- the value for theconsolFun
record component
-
-
Method Details
-
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 '=='. -
dsType
public org.rrd4j.DsType dsType()Returns the value of thedsType
record component.- Returns:
- the value of the
dsType
record component
-
minValue
public double minValue()Returns the value of theminValue
record component.- Returns:
- the value of the
minValue
record component
-
maxValue
public double maxValue()Returns the value of themaxValue
record component.- Returns:
- the value of the
maxValue
record component
-
consolFun
public org.rrd4j.ConsolFun consolFun()Returns the value of theconsolFun
record component.- Returns:
- the value of the
consolFun
record component
-