Record Class GsonArrayVisitor
java.lang.Object
java.lang.Record
eu.cloudnetservice.driver.impl.document.gson.send.GsonArrayVisitor
- Record Components:
targetArray- the target gson json array 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.JsonArrayThe field for thetargetArrayrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGsonArrayVisitor(@NonNull com.google.gson.JsonArray targetArray) Creates an instance of aGsonArrayVisitorrecord 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.JsonArrayReturns the value of thetargetArrayrecord 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
-
targetArray
The field for thetargetArrayrecord component.
-
-
Constructor Details
-
GsonArrayVisitor
Creates an instance of aGsonArrayVisitorrecord class.- Parameters:
targetArray- the value for thetargetArrayrecord 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). -
targetArray
Returns the value of thetargetArrayrecord component.- Returns:
- the value of the
targetArrayrecord component
-