Package me.ahoo.cosid.proxy.api
Record Class LeaseResponse
java.lang.Object
java.lang.Record
me.ahoo.cosid.proxy.api.LeaseResponse
- Record Components:
lease- the lease, ornullif the claim found nothing or the renewal lost the lease
The result of a claim or a renewal.
-
Constructor Summary
ConstructorsConstructorDescriptionLeaseResponse(@Nullable LeaseDto lease) Creates an instance of aLeaseResponserecord 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.@Nullable LeaseDtolease()Returns the value of theleaserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LeaseResponse
Creates an instance of aLeaseResponserecord class.- Parameters:
lease- the value for theleaserecord 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). -
lease
Returns the value of theleaserecord component.- Returns:
- the value of the
leaserecord component
-