Package com.storedobject.ui.iot
Record Class ConsumptionList.Entry
java.lang.Object
java.lang.Record
com.storedobject.ui.iot.ConsumptionList.Entry
- Enclosing class:
ConsumptionList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Returns the value of theconsumption
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.period()
Returns the value of theperiod
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Entry
Creates an instance of aEntry
record class.- Parameters:
period
- the value for theperiod
record componentconsumption
- the value for theconsumption
record component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
period
Returns the value of theperiod
record component.- Returns:
- the value of the
period
record component
-
consumption
public double[] consumption()Returns the value of theconsumption
record component.- Returns:
- the value of the
consumption
record component
-