Package openGql.grammar
Class SimpleWhenClause
- java.lang.Object
-
- openGql.grammar.SimpleWhenClause
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SimpleWhenClause>
public class SimpleWhenClause extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SimpleWhenClause>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Resultresultstatic NameRESULTName of theopenGql.grammar.SimpleWhenClause.resultfield.static NameTYPE_Name of theopenGql.grammar.SimpleWhenClausetype.static NameWHEN_OPERANDSName of theopenGql.grammar.SimpleWhenClause.whenOperandsfield.java.util.List<WhenOperand>whenOperands
-
Constructor Summary
Constructors Constructor Description SimpleWhenClause(java.util.List<WhenOperand> whenOperands, Result result)Constructs an immutableSimpleWhenClause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SimpleWhenClause other)booleanequals(java.lang.Object other)inthashCode()SimpleWhenClausewithResult(Result result)Returns a copy of thisSimpleWhenClausewithresultreplaced.SimpleWhenClausewithWhenOperands(java.util.List<WhenOperand> whenOperands)Returns a copy of thisSimpleWhenClausewithwhenOperandsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SimpleWhenClausetype.
-
WHEN_OPERANDS
public static final Name WHEN_OPERANDS
Name of theopenGql.grammar.SimpleWhenClause.whenOperandsfield.
-
RESULT
public static final Name RESULT
Name of theopenGql.grammar.SimpleWhenClause.resultfield.
-
whenOperands
public final java.util.List<WhenOperand> whenOperands
-
result
public final Result result
-
-
Constructor Detail
-
SimpleWhenClause
public SimpleWhenClause(java.util.List<WhenOperand> whenOperands, Result result)
Constructs an immutableSimpleWhenClause.
-
-
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(SimpleWhenClause other)
- Specified by:
compareToin interfacejava.lang.Comparable<SimpleWhenClause>
-
withWhenOperands
public SimpleWhenClause withWhenOperands(java.util.List<WhenOperand> whenOperands)
Returns a copy of thisSimpleWhenClausewithwhenOperandsreplaced.
-
withResult
public SimpleWhenClause withResult(Result result)
Returns a copy of thisSimpleWhenClausewithresultreplaced.
-
-