Class SetLabelItem

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

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

      • TYPE_

        public static final Name TYPE_
        Name of the openGql.grammar.SetLabelItem type.
      • VARIABLE

        public static final Name VARIABLE
        Name of the openGql.grammar.SetLabelItem.variable field.
      • IS_OR_COLON

        public static final Name IS_OR_COLON
        Name of the openGql.grammar.SetLabelItem.isOrColon field.
      • LABEL

        public static final Name LABEL
        Name of the openGql.grammar.SetLabelItem.label field.
      • variable

        public final java.lang.String variable
      • isOrColon

        public final IsOrColon isOrColon
      • label

        public final java.lang.String label
    • Constructor Detail

      • SetLabelItem

        public SetLabelItem​(java.lang.String variable,
                            IsOrColon isOrColon,
                            java.lang.String label)
        Constructs an immutable SetLabelItem.
    • 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​(SetLabelItem other)
        Specified by:
        compareTo in interface java.lang.Comparable<SetLabelItem>
      • withVariable

        public SetLabelItem withVariable​(java.lang.String variable)
        Returns a copy of this SetLabelItem with variable replaced.
      • withLabel

        public SetLabelItem withLabel​(java.lang.String label)
        Returns a copy of this SetLabelItem with label replaced.