Record Class GsonObjectVisitor
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.impl.document.gson.send.GsonObjectVisitor
- Record Components:
targetObject- the target gson json object to put all visited elements into.
- All Implemented Interfaces:
eu.cloudnetservice.driver.document.send.ElementVisitor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @NonNull com.google.gson.JsonObjectThe field for thetargetObjectrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGsonObjectVisitor(@NonNull com.google.gson.JsonObject targetObject) Creates an instance of aGsonObjectVisitorrecord 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.@NonNull com.google.gson.JsonObjectReturns the value of thetargetObjectrecord component.final StringtoString()Returns a string representation of this record class.@NonNull eu.cloudnetservice.driver.document.send.ElementVisitorvisitArray(@NonNull eu.cloudnetservice.driver.document.send.element.ArrayElement entry) voidvisitEnd()void@NonNull eu.cloudnetservice.driver.document.send.ElementVisitorvisitObject(@NonNull eu.cloudnetservice.driver.document.send.element.ObjectElement entry) voidvisitPrimitive(@NonNull eu.cloudnetservice.driver.document.send.element.PrimitiveElement entry)
-
Field Details
-
targetObject
The field for thetargetObjectrecord component.
-
-
Constructor Details
-
GsonObjectVisitor
Creates an instance of aGsonObjectVisitorrecord class.- Parameters:
targetObject- the value for thetargetObjectrecord component
-
-
Method Details
-
visitEnd
public void visitEnd()- Specified by:
visitEndin interfaceeu.cloudnetservice.driver.document.send.ElementVisitor
-
visitNull
-
visitPrimitive
-
visitArray
-
visitObject
-
toString
-
hashCode
-
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). -
targetObject
Returns the value of thetargetObjectrecord component.- Returns:
- the value of the
targetObjectrecord component
-