Package openGql.grammar
Class IntWithPrecision
- java.lang.Object
-
- openGql.grammar.IntWithPrecision
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<IntWithPrecision>
public class IntWithPrecision extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<IntWithPrecision>
A GQL int with precision- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIntWithPrecision.BuilderA fluent builder forIntWithPrecision.
-
Field Summary
Fields Modifier and Type Field Description static NameNOT_NULLName of theopenGql.grammar.IntWithPrecision.notNullfield.java.lang.BooleannotNullOptional<java.lang.String>precisionstatic NamePRECISIONName of theopenGql.grammar.IntWithPrecision.precisionfield.static NameTYPE_Name of theopenGql.grammar.IntWithPrecisiontype.
-
Constructor Summary
Constructors Constructor Description IntWithPrecision(Optional<java.lang.String> precision, java.lang.Boolean notNull)Constructs an immutableIntWithPrecision.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IntWithPrecision.Builderbuilder()Creates a new fluent builder forIntWithPrecision.intcompareTo(IntWithPrecision other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()IntWithPrecisionwithNotNull(java.lang.Boolean notNull)Returns a copy of thisIntWithPrecisionwithnotNullreplaced.IntWithPrecisionwithPrecision(Optional<java.lang.String> precision)Returns a copy of thisIntWithPrecisionwithprecisionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.IntWithPrecisiontype.
-
PRECISION
public static final Name PRECISION
Name of theopenGql.grammar.IntWithPrecision.precisionfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.IntWithPrecision.notNullfield.
-
precision
public final Optional<java.lang.String> precision
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
IntWithPrecision
public IntWithPrecision(Optional<java.lang.String> precision, java.lang.Boolean notNull)
Constructs an immutableIntWithPrecision.
-
-
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(IntWithPrecision other)
- Specified by:
compareToin interfacejava.lang.Comparable<IntWithPrecision>
-
withPrecision
public IntWithPrecision withPrecision(Optional<java.lang.String> precision)
Returns a copy of thisIntWithPrecisionwithprecisionreplaced.
-
withNotNull
public IntWithPrecision withNotNull(java.lang.Boolean notNull)
Returns a copy of thisIntWithPrecisionwithnotNullreplaced.
-
builder
public static IntWithPrecision.Builder builder()
Creates a new fluent builder forIntWithPrecision.
-
-