Class ShapeOr

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

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

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.shex.syntax.ShapeOr type.
      • SHAPE_AND

        public static final Name SHAPE_AND
        Name of the hydra.shex.syntax.ShapeOr.ShapeAnd field.
      • LIST_OF_SEQUENCE

        public static final Name LIST_OF_SEQUENCE
        Name of the hydra.shex.syntax.ShapeOr.listOfSequence field.
      • ShapeAnd

        public final ShapeAnd ShapeAnd
      • listOfSequence

        public final java.util.List<ShapeAnd> listOfSequence
    • Constructor Detail

      • ShapeOr

        public ShapeOr​(ShapeAnd ShapeAnd,
                       java.util.List<ShapeAnd> listOfSequence)
        Constructs an immutable ShapeOr.
    • 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​(ShapeOr other)
        Specified by:
        compareTo in interface java.lang.Comparable<ShapeOr>
      • withShapeAnd

        public ShapeOr withShapeAnd​(ShapeAnd ShapeAnd)
        Returns a copy of this ShapeOr with ShapeAnd replaced.
      • withListOfSequence

        public ShapeOr withListOfSequence​(java.util.List<ShapeAnd> listOfSequence)
        Returns a copy of this ShapeOr with listOfSequence replaced.