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 aPatchLine
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theoperation
record component.com.google.gson.JsonObject
toJson()
final String
toString()
Returns a string representation of this record class.com.google.gson.JsonElement
value()
Returns the value of thevalue
record component.
-
Constructor Details
-
PatchLine
Creates an instance of aPatchLine
record class.- Parameters:
operation
- the value for theoperation
record componentvalue
- the value for thevalue
record 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 theoperation
record component.- Returns:
- the value of the
operation
record component
-
value
public com.google.gson.JsonElement value()Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-