Package hydra.cypher.openCypher
Class RangeExpression
- java.lang.Object
-
- hydra.cypher.openCypher.RangeExpression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RangeExpression>
public class RangeExpression extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<RangeExpression>
The bracketed range of a list-slice operator- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRangeExpression.BuilderA fluent builder forRangeExpression.
-
Field Summary
Fields Modifier and Type Field Description Optional<Expression>endstatic NameENDName of thehydra.cypher.openCypher.RangeExpression.endfield.Optional<Expression>startstatic NameSTARTName of thehydra.cypher.openCypher.RangeExpression.startfield.static NameTYPE_Name of thehydra.cypher.openCypher.RangeExpressiontype.
-
Constructor Summary
Constructors Constructor Description RangeExpression(Optional<Expression> start, Optional<Expression> end)Constructs an immutableRangeExpression.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RangeExpression.Builderbuilder()Creates a new fluent builder forRangeExpression.intcompareTo(RangeExpression other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()RangeExpressionwithEnd(Optional<Expression> end)Returns a copy of thisRangeExpressionwithendreplaced.RangeExpressionwithStart(Optional<Expression> start)Returns a copy of thisRangeExpressionwithstartreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.cypher.openCypher.RangeExpressiontype.
-
START
public static final Name START
Name of thehydra.cypher.openCypher.RangeExpression.startfield.
-
END
public static final Name END
Name of thehydra.cypher.openCypher.RangeExpression.endfield.
-
start
public final Optional<Expression> start
-
end
public final Optional<Expression> end
-
-
Constructor Detail
-
RangeExpression
public RangeExpression(Optional<Expression> start, Optional<Expression> end)
Constructs an immutableRangeExpression.
-
-
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(RangeExpression other)
- Specified by:
compareToin interfacejava.lang.Comparable<RangeExpression>
-
withStart
public RangeExpression withStart(Optional<Expression> start)
Returns a copy of thisRangeExpressionwithstartreplaced.
-
withEnd
public RangeExpression withEnd(Optional<Expression> end)
Returns a copy of thisRangeExpressionwithendreplaced.
-
builder
public static RangeExpression.Builder builder()
Creates a new fluent builder forRangeExpression.
-
-