Package openGql.grammar
Class SetOperator
- java.lang.Object
-
- openGql.grammar.SetOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SetOperator>
public class SetOperator extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SetOperator>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameOPERATOR_TYPEName of theopenGql.grammar.SetOperator.operatorTypefield.SetOperatorTypeoperatorTypeOptional<SetQuantifier>quantifierstatic NameQUANTIFIERName of theopenGql.grammar.SetOperator.quantifierfield.static NameTYPE_Name of theopenGql.grammar.SetOperatortype.
-
Constructor Summary
Constructors Constructor Description SetOperator(SetOperatorType operatorType, Optional<SetQuantifier> quantifier)Constructs an immutableSetOperator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SetOperator other)booleanequals(java.lang.Object other)inthashCode()SetOperatorwithOperatorType(SetOperatorType operatorType)Returns a copy of thisSetOperatorwithoperatorTypereplaced.SetOperatorwithQuantifier(Optional<SetQuantifier> quantifier)Returns a copy of thisSetOperatorwithquantifierreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SetOperatortype.
-
OPERATOR_TYPE
public static final Name OPERATOR_TYPE
Name of theopenGql.grammar.SetOperator.operatorTypefield.
-
QUANTIFIER
public static final Name QUANTIFIER
Name of theopenGql.grammar.SetOperator.quantifierfield.
-
operatorType
public final SetOperatorType operatorType
-
quantifier
public final Optional<SetQuantifier> quantifier
-
-
Constructor Detail
-
SetOperator
public SetOperator(SetOperatorType operatorType, Optional<SetQuantifier> quantifier)
Constructs an immutableSetOperator.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SetOperator other)
- Specified by:
compareToin interfacejava.lang.Comparable<SetOperator>
-
withOperatorType
public SetOperator withOperatorType(SetOperatorType operatorType)
Returns a copy of thisSetOperatorwithoperatorTypereplaced.
-
withQuantifier
public SetOperator withQuantifier(Optional<SetQuantifier> quantifier)
Returns a copy of thisSetOperatorwithquantifierreplaced.
-
-