Record Class ScaledUnit
java.lang.Object
java.lang.Record
energy.eddie.core.converters.calculations.ScaledUnit
public record ScaledUnit(energy.eddie.cim.v0_82.vhd.UnitOfMeasureTypeList unit, BigDecimal scale, energy.eddie.cim.v0_82.vhd.EnergyProductTypeList energyProduct)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionScaledUnit(energy.eddie.cim.v0_82.vhd.UnitOfMeasureTypeList unit, BigDecimal scale, energy.eddie.cim.v0_82.vhd.EnergyProductTypeList energyProduct) Creates an instance of aScaledUnitrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenergy.eddie.cim.v0_82.vhd.EnergyProductTypeListReturns the value of theenergyProductrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.energy.eddie.cim.v0_82.vhd.UnitOfMeasureTypeListunit()Returns the value of theunitrecord component.
-
Constructor Details
-
ScaledUnit
public ScaledUnit(energy.eddie.cim.v0_82.vhd.UnitOfMeasureTypeList unit, BigDecimal scale, energy.eddie.cim.v0_82.vhd.EnergyProductTypeList energyProduct) Creates an instance of aScaledUnitrecord class.- Parameters:
unit- the value for theunitrecord componentscale- the value for thescalerecord componentenergyProduct- the value for theenergyProductrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
unit
public energy.eddie.cim.v0_82.vhd.UnitOfMeasureTypeList unit()Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
scale
Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
energyProduct
public energy.eddie.cim.v0_82.vhd.EnergyProductTypeList energyProduct()Returns the value of theenergyProductrecord component.- Returns:
- the value of the
energyProductrecord component
-