Class OpenGraphType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OpenGraphType>

    public class OpenGraphType
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<OpenGraphType>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the openGql.grammar.OpenGraphType type.
      • TYPED

        public static final Name TYPED
        Name of the openGql.grammar.OpenGraphType.typed field.
      • GRAPH

        public static final Name GRAPH
        Name of the openGql.grammar.OpenGraphType.graph field.
      • typed

        public final Optional<java.lang.Void> typed
      • graph

        public final java.lang.Boolean graph
    • Constructor Detail

      • OpenGraphType

        public OpenGraphType​(Optional<java.lang.Void> typed,
                             java.lang.Boolean graph)
        Constructs an immutable OpenGraphType.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(OpenGraphType other)
        Specified by:
        compareTo in interface java.lang.Comparable<OpenGraphType>
      • withGraph

        public OpenGraphType withGraph​(java.lang.Boolean graph)
        Returns a copy of this OpenGraphType with graph replaced.