Class CompositePDT

java.lang.Object
org.apache.tinkerpop.gremlin.structure.io.pdt.CompositePDT

public final class CompositePDT extends Object
An immutable representation of a provider-defined type consisting of a name and a map of fields.
  • Constructor Details

  • Method Details

    • from

      public static CompositePDT from(Object obj)
      Creates a CompositePDT from an object annotated with ProviderDefined.
    • getName

      public String getName()
    • getFields

      public Map<String,Object> getFields()
    • withHydrated

      public CompositePDT withHydrated(Object hydrated)
      Returns a copy of this PDT with the hydrated object attached.
    • getHydrated

      public Object getHydrated()
      Returns the hydrated object if this PDT was hydrated by a PDTRegistry, or null.
    • equals

      public boolean equals(Object o)
      Equality is based solely on name and fields (the serialized wire form). The hydrated field is intentionally excluded — it is a transient, derived view cached by the deserializer via withHydrated(Object) and is not part of the type's logical identity.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      See equals(Object) for rationale on field inclusion.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object