Class NodePattern

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

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

      Fields 
      Modifier and Type Field Description
      static Name TYPE_
      Name of the com.gdblab.pathAlgebra.syntax.NodePattern type.
      Optional<java.lang.String> variable  
      static Name VARIABLE
      Name of the com.gdblab.pathAlgebra.syntax.NodePattern.variable field.
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the com.gdblab.pathAlgebra.syntax.NodePattern type.
      • VARIABLE

        public static final Name VARIABLE
        Name of the com.gdblab.pathAlgebra.syntax.NodePattern.variable field.
      • variable

        public final Optional<java.lang.String> variable
    • Constructor Detail

      • NodePattern

        public NodePattern​(Optional<java.lang.String> variable)
        Constructs an immutable NodePattern.
    • 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​(NodePattern other)
        Specified by:
        compareTo in interface java.lang.Comparable<NodePattern>