Record Class AgingExposure
java.lang.Object
java.lang.Record
ke.ric.api.aging.AgingExposure
-
Constructor Summary
ConstructorsConstructorDescriptionAgingExposure(long totalMillis, Map<String, Long> temperatureMillis, Map<String, Long> humidityMillis) AgingExposure(long totalMillis, Map<String, Long> temperatureMillis, Map<String, Long> humidityMillis, Map<String, Long> environmentMillis) Creates an instance of aAgingExposurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AgingExposureempty()Returns the value of theenvironmentMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehumidityMillisrecord component.Returns the value of thetemperatureMillisrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalMillisrecord component.
-
Constructor Details
-
AgingExposure
-
AgingExposure
public AgingExposure(long totalMillis, Map<String, Long> temperatureMillis, Map<String, Long> humidityMillis, Map<String, Long> environmentMillis) Creates an instance of aAgingExposurerecord class.- Parameters:
totalMillis- the value for thetotalMillisrecord componenttemperatureMillis- the value for thetemperatureMillisrecord componenthumidityMillis- the value for thehumidityMillisrecord componentenvironmentMillis- the value for theenvironmentMillisrecord component
-
-
Method Details
-
empty
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
totalMillis
public long totalMillis()Returns the value of thetotalMillisrecord component.- Returns:
- the value of the
totalMillisrecord component
-
temperatureMillis
-
humidityMillis
-
environmentMillis
-