Record Class UsageSegment
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.cds.providers.cim.UsageSegment
public record UsageSegment(ZonedDateTime start, ZonedDateTime end, BigDecimal interval, Map<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner.FormatEnum,List<BigDecimal>> usageSegmentValues)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUsageSegment(ZonedDateTime start, ZonedDateTime end, BigDecimal interval, Map<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner.FormatEnum, List<BigDecimal>> usageSegmentValues) Creates an instance of aUsageSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.Map<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner.FormatEnum, List<BigDecimal>> Returns the value of theusageSegmentValuesrecord component.
-
Constructor Details
-
UsageSegment
public UsageSegment(ZonedDateTime start, ZonedDateTime end, BigDecimal interval, Map<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner.FormatEnum, List<BigDecimal>> usageSegmentValues) Creates an instance of aUsageSegmentrecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentinterval- the value for theintervalrecord componentusageSegmentValues- the value for theusageSegmentValuesrecord 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). -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
usageSegmentValues
public Map<energy.eddie.regionconnector.cds.openapi.model.UsageSegmentEndpoint200ResponseAllOfUsageSegmentsInner.FormatEnum,List<BigDecimal>> usageSegmentValues()Returns the value of theusageSegmentValuesrecord component.- Returns:
- the value of the
usageSegmentValuesrecord component
-