Package hydra.cypher.openCypher
Class VariablePlusEquals
- java.lang.Object
-
- hydra.cypher.openCypher.VariablePlusEquals
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<VariablePlusEquals>
public class VariablePlusEquals extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<VariablePlusEquals>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Variablelhsstatic NameLHSName of thehydra.cypher.openCypher.VariablePlusEquals.lhsfield.Expressionrhsstatic NameRHSName of thehydra.cypher.openCypher.VariablePlusEquals.rhsfield.static NameTYPE_Name of thehydra.cypher.openCypher.VariablePlusEqualstype.
-
Constructor Summary
Constructors Constructor Description VariablePlusEquals(Variable lhs, Expression rhs)Constructs an immutableVariablePlusEquals.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(VariablePlusEquals other)booleanequals(java.lang.Object other)inthashCode()VariablePlusEqualswithLhs(Variable lhs)Returns a copy of thisVariablePlusEqualswithlhsreplaced.VariablePlusEqualswithRhs(Expression rhs)Returns a copy of thisVariablePlusEqualswithrhsreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.cypher.openCypher.VariablePlusEqualstype.
-
LHS
public static final Name LHS
Name of thehydra.cypher.openCypher.VariablePlusEquals.lhsfield.
-
RHS
public static final Name RHS
Name of thehydra.cypher.openCypher.VariablePlusEquals.rhsfield.
-
lhs
public final Variable lhs
-
rhs
public final Expression rhs
-
-
Constructor Detail
-
VariablePlusEquals
public VariablePlusEquals(Variable lhs, Expression rhs)
Constructs an immutableVariablePlusEquals.
-
-
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(VariablePlusEquals other)
- Specified by:
compareToin interfacejava.lang.Comparable<VariablePlusEquals>
-
withLhs
public VariablePlusEquals withLhs(Variable lhs)
Returns a copy of thisVariablePlusEqualswithlhsreplaced.
-
withRhs
public VariablePlusEquals withRhs(Expression rhs)
Returns a copy of thisVariablePlusEqualswithrhsreplaced.
-
-