Record Class ConnectionLimit.ConnectionLimitKey
java.lang.Object
java.lang.Record
energy.eddie.aiida.models.connectionlimit.ConnectionLimit.ConnectionLimitKey
- Enclosing class:
ConnectionLimit
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionLimitKey(UUID permissionId, String meterId, Instant intervalStart, Instant intervalEnd) Creates an instance of aConnectionLimitKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintervalEndrecord component.Returns the value of theintervalStartrecord component.meterId()Returns the value of themeterIdrecord component.Returns the value of thepermissionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConnectionLimitKey
public ConnectionLimitKey(UUID permissionId, String meterId, Instant intervalStart, Instant intervalEnd) Creates an instance of aConnectionLimitKeyrecord class.- Parameters:
permissionId- the value for thepermissionIdrecord componentmeterId- the value for themeterIdrecord componentintervalStart- the value for theintervalStartrecord componentintervalEnd- the value for theintervalEndrecord 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). -
permissionId
Returns the value of thepermissionIdrecord component.- Returns:
- the value of the
permissionIdrecord component
-
meterId
Returns the value of themeterIdrecord component.- Returns:
- the value of the
meterIdrecord component
-
intervalStart
Returns the value of theintervalStartrecord component.- Returns:
- the value of the
intervalStartrecord component
-
intervalEnd
Returns the value of theintervalEndrecord component.- Returns:
- the value of the
intervalEndrecord component
-