Package google.registry.rde
Record Class DepositFragment
java.lang.Object
java.lang.Record
google.registry.rde.DepositFragment
- All Implemented Interfaces:
Serializable
public record DepositFragment(RdeResourceType type, String xml, String error)
extends Record
implements Serializable
Container of RDE resource marshalled by
RdeMarshaller
.- See Also:
-
Constructor Summary
ConstructorDescriptionDepositFragment
(RdeResourceType type, String xml, String error) Creates an instance of aDepositFragment
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic DepositFragment
create
(RdeResourceType type, String xml, String error) final boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.xml()
Returns the value of thexml
record component.
-
Constructor Details
-
DepositFragment
Creates an instance of aDepositFragment
record class.- Parameters:
type
- the value for thetype
record componentxml
- the value for thexml
record componenterror
- the value for theerror
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)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
xml
Returns the value of thexml
record component.- Returns:
- the value of the
xml
record component
-
error
Returns the value of theerror
record component.- Returns:
- the value of the
error
record component
-