Package openGql.grammar
Class OffsetClause
- java.lang.Object
-
- openGql.grammar.OffsetClause
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OffsetClause>
public class OffsetClause extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<OffsetClause>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description OffsetSynonymsynonymstatic NameSYNONYMName of theopenGql.grammar.OffsetClause.synonymfield.static NameTYPE_Name of theopenGql.grammar.OffsetClausetype.NonNegativeIntegerSpecificationvaluestatic NameVALUEName of theopenGql.grammar.OffsetClause.valuefield.
-
Constructor Summary
Constructors Constructor Description OffsetClause(OffsetSynonym synonym, NonNegativeIntegerSpecification value)Constructs an immutableOffsetClause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(OffsetClause other)booleanequals(java.lang.Object other)inthashCode()OffsetClausewithSynonym(OffsetSynonym synonym)Returns a copy of thisOffsetClausewithsynonymreplaced.OffsetClausewithValue(NonNegativeIntegerSpecification value)Returns a copy of thisOffsetClausewithvaluereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.OffsetClausetype.
-
SYNONYM
public static final Name SYNONYM
Name of theopenGql.grammar.OffsetClause.synonymfield.
-
VALUE
public static final Name VALUE
Name of theopenGql.grammar.OffsetClause.valuefield.
-
synonym
public final OffsetSynonym synonym
-
value
public final NonNegativeIntegerSpecification value
-
-
Constructor Detail
-
OffsetClause
public OffsetClause(OffsetSynonym synonym, NonNegativeIntegerSpecification value)
Constructs an immutableOffsetClause.
-
-
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(OffsetClause other)
- Specified by:
compareToin interfacejava.lang.Comparable<OffsetClause>
-
withSynonym
public OffsetClause withSynonym(OffsetSynonym synonym)
Returns a copy of thisOffsetClausewithsynonymreplaced.
-
withValue
public OffsetClause withValue(NonNegativeIntegerSpecification value)
Returns a copy of thisOffsetClausewithvaluereplaced.
-
-