Class PrimitivePDT

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

public final class PrimitivePDT extends Object
An immutable representation of a primitive provider-defined type consisting of a name and an opaque string value.
  • Constructor Details

    • PrimitivePDT

      public PrimitivePDT(String name, String value)
  • Method Details

    • getName

      public String getName()
    • getValue

      public String getValue()
    • withHydrated

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

      public Object getHydrated()
      Returns the hydrated object if set, or null.
    • equals

      public boolean equals(Object o)
      Equality is based solely on name and value (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()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object