Package google.registry.bsa.api
Record Class BlockOrder
java.lang.Object
java.lang.Record
google.registry.bsa.api.BlockOrder
A BSA order, which are needed when communicating with the BSA API while processing downloaded
block lists.
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBlockOrder
(long orderId, BlockOrder.OrderType orderType) Creates an instance of aBlockOrder
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockOrder
create
(long orderId, BlockOrder.OrderType orderType) static BlockOrder
deserialize
(String text) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
orderId()
Returns the value of theorderId
record component.Returns the value of theorderType
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
BlockOrder
Creates an instance of aBlockOrder
record class.- Parameters:
orderId
- the value for theorderId
record componentorderType
- the value for theorderType
record component
-
-
Method Details
-
serialize
-
deserialize
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
orderId
public long orderId()Returns the value of theorderId
record component.- Returns:
- the value of the
orderId
record component
-
orderType
Returns the value of theorderType
record component.- Returns:
- the value of the
orderType
record component
-