Package google.registry.proxy.quota
Record Class QuotaManager.QuotaRebate
java.lang.Object
java.lang.Record
google.registry.proxy.quota.QuotaManager.QuotaRebate
- Enclosing class:
QuotaManager
public static record QuotaManager.QuotaRebate(String userId, org.joda.time.DateTime grantedTokenRefillTime)
extends Record
Value class representing a quota rebate.
-
Constructor Summary
ConstructorDescriptionQuotaRebate
(String userId, org.joda.time.DateTime grantedTokenRefillTime) Creates an instance of aQuotaRebate
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic QuotaManager.QuotaRebate
create
(QuotaManager.QuotaResponse response) final boolean
Indicates whether some other object is "equal to" this one.org.joda.time.DateTime
Returns the value of thegrantedTokenRefillTime
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.userId()
Returns the value of theuserId
record component.
-
Constructor Details
-
QuotaRebate
Creates an instance of aQuotaRebate
record class.- Parameters:
userId
- the value for theuserId
record componentgrantedTokenRefillTime
- the value for thegrantedTokenRefillTime
record component
-
-
Method Details
-
create
-
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)
. -
userId
Returns the value of theuserId
record component.- Returns:
- the value of the
userId
record component
-
grantedTokenRefillTime
public org.joda.time.DateTime grantedTokenRefillTime()Returns the value of thegrantedTokenRefillTime
record component.- Returns:
- the value of the
grantedTokenRefillTime
record component
-