Package openGql.grammar
Class IntegerWithPrecision
- java.lang.Object
-
- openGql.grammar.IntegerWithPrecision
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IntegerWithPrecision>
public class IntegerWithPrecision extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<IntegerWithPrecision>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameNOT_NULLName of theopenGql.grammar.IntegerWithPrecision.notNullfield.java.lang.BooleannotNullOptional<java.lang.String>precisionstatic NamePRECISIONName of theopenGql.grammar.IntegerWithPrecision.precisionfield.static NameTYPE_Name of theopenGql.grammar.IntegerWithPrecisiontype.
-
Constructor Summary
Constructors Constructor Description IntegerWithPrecision(Optional<java.lang.String> precision, java.lang.Boolean notNull)Constructs an immutableIntegerWithPrecision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IntegerWithPrecision other)booleanequals(java.lang.Object other)inthashCode()IntegerWithPrecisionwithNotNull(java.lang.Boolean notNull)Returns a copy of thisIntegerWithPrecisionwithnotNullreplaced.IntegerWithPrecisionwithPrecision(Optional<java.lang.String> precision)Returns a copy of thisIntegerWithPrecisionwithprecisionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.IntegerWithPrecisiontype.
-
PRECISION
public static final Name PRECISION
Name of theopenGql.grammar.IntegerWithPrecision.precisionfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.IntegerWithPrecision.notNullfield.
-
precision
public final Optional<java.lang.String> precision
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
IntegerWithPrecision
public IntegerWithPrecision(Optional<java.lang.String> precision, java.lang.Boolean notNull)
Constructs an immutableIntegerWithPrecision.
-
-
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(IntegerWithPrecision other)
- Specified by:
compareToin interfacejava.lang.Comparable<IntegerWithPrecision>
-
withPrecision
public IntegerWithPrecision withPrecision(Optional<java.lang.String> precision)
Returns a copy of thisIntegerWithPrecisionwithprecisionreplaced.
-
withNotNull
public IntegerWithPrecision withNotNull(java.lang.Boolean notNull)
Returns a copy of thisIntegerWithPrecisionwithnotNullreplaced.
-
-