Record Class JsonPatch.PatchLine
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.golang.rtti.JsonPatch.PatchLine
- Enclosing class:
JsonPatch
public static record JsonPatch.PatchLine(JsonPatch.PatchOp operation, com.google.gson.JsonElement value)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPatchLine(JsonPatch.PatchOp operation, com.google.gson.JsonElement value) Creates an instance of aPatchLinerecord 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 theoperationrecord component.com.google.gson.JsonObjecttoJson()final StringtoString()Returns a string representation of this record class.com.google.gson.JsonElementvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
PatchLine
Creates an instance of aPatchLinerecord class.- Parameters:
operation- the value for theoperationrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
toJson
public com.google.gson.JsonObject toJson() -
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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
value
public com.google.gson.JsonElement value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-