Package openGql.grammar
Class ConjunctionLabelExpression
- java.lang.Object
-
- openGql.grammar.ConjunctionLabelExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConjunctionLabelExpression>
public class ConjunctionLabelExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<ConjunctionLabelExpression>
A GQL conjunction label expression- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConjunctionLabelExpression.BuilderA fluent builder forConjunctionLabelExpression.
-
Field Summary
Fields Modifier and Type Field Description LabelExpressionleftstatic NameLEFTName of theopenGql.grammar.ConjunctionLabelExpression.leftfield.LabelExpressionrightstatic NameRIGHTName of theopenGql.grammar.ConjunctionLabelExpression.rightfield.static NameTYPE_Name of theopenGql.grammar.ConjunctionLabelExpressiontype.
-
Constructor Summary
Constructors Constructor Description ConjunctionLabelExpression(LabelExpression left, LabelExpression right)Constructs an immutableConjunctionLabelExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConjunctionLabelExpression.Builderbuilder()Creates a new fluent builder forConjunctionLabelExpression.intcompareTo(ConjunctionLabelExpression other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()ConjunctionLabelExpressionwithLeft(LabelExpression left)Returns a copy of thisConjunctionLabelExpressionwithleftreplaced.ConjunctionLabelExpressionwithRight(LabelExpression right)Returns a copy of thisConjunctionLabelExpressionwithrightreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.ConjunctionLabelExpressiontype.
-
LEFT
public static final Name LEFT
Name of theopenGql.grammar.ConjunctionLabelExpression.leftfield.
-
RIGHT
public static final Name RIGHT
Name of theopenGql.grammar.ConjunctionLabelExpression.rightfield.
-
left
public final LabelExpression left
-
right
public final LabelExpression right
-
-
Constructor Detail
-
ConjunctionLabelExpression
public ConjunctionLabelExpression(LabelExpression left, LabelExpression right)
Constructs an immutableConjunctionLabelExpression.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
compareTo
public int compareTo(ConjunctionLabelExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<ConjunctionLabelExpression>
-
withLeft
public ConjunctionLabelExpression withLeft(LabelExpression left)
Returns a copy of thisConjunctionLabelExpressionwithleftreplaced.
-
withRight
public ConjunctionLabelExpression withRight(LabelExpression right)
Returns a copy of thisConjunctionLabelExpressionwithrightreplaced.
-
builder
public static ConjunctionLabelExpression.Builder builder()
Creates a new fluent builder forConjunctionLabelExpression.
-
-