Record Class OesterreichsEnergieAdapterJson
java.lang.Object
java.lang.Record
energy.eddie.aiida.adapters.datasource.at.transformer.OesterreichsEnergieAdapterJson
- Record Components:
energyData- Holds the values from the smart meter adapter. Keys are the OBIS codes and the value and timestamp are stored in the values.apiVersion- API version of the smart meter adapter.name- Name as entered during the smart meter adapter setup.smaTime- Indicates the time of the smart meter adapter.
public record OesterreichsEnergieAdapterJson(Map<String,OesterreichsEnergieAdapterJson.AdapterValue> energyData, String apiVersion, String name, Double smaTime)
extends Record
Represents the JSON that is received from the Oesterreichs Energie Smart Meter Adapter.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOesterreichsEnergieAdapterJson(Map<String, OesterreichsEnergieAdapterJson.AdapterValue> energyData, String apiVersion, String name, Double smaTime) Creates an instance of aOesterreichsEnergieAdapterJsonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiVersionrecord component.Returns the value of theenergyDatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.voidsmaTime()Returns the value of thesmaTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OesterreichsEnergieAdapterJson
public OesterreichsEnergieAdapterJson(Map<String, OesterreichsEnergieAdapterJson.AdapterValue> energyData, String apiVersion, String name, Double smaTime) Creates an instance of aOesterreichsEnergieAdapterJsonrecord class.- Parameters:
energyData- the value for theenergyDatarecord componentapiVersion- the value for theapiVersionrecord componentname- the value for thenamerecord componentsmaTime- the value for thesmaTimerecord component
-
-
Method Details
-
putEnergyData
-
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). -
energyData
Returns the value of theenergyDatarecord component.- Returns:
- the value of the
energyDatarecord component
-
apiVersion
Returns the value of theapiVersionrecord component.- Returns:
- the value of the
apiVersionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
smaTime
Returns the value of thesmaTimerecord component.- Returns:
- the value of the
smaTimerecord component
-