Package openGql.grammar
Class DoubleTypeWithPrecision
- java.lang.Object
-
- openGql.grammar.DoubleTypeWithPrecision
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DoubleTypeWithPrecision>
public class DoubleTypeWithPrecision extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<DoubleTypeWithPrecision>
A GQL double type with precision- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDoubleTypeWithPrecision.BuilderA fluent builder forDoubleTypeWithPrecision.
-
Field Summary
Fields Modifier and Type Field Description static NameNOT_NULLName of theopenGql.grammar.DoubleTypeWithPrecision.notNullfield.java.lang.BooleannotNulljava.lang.Booleanprecisionstatic NamePRECISIONName of theopenGql.grammar.DoubleTypeWithPrecision.precisionfield.static NameTYPE_Name of theopenGql.grammar.DoubleTypeWithPrecisiontype.
-
Constructor Summary
Constructors Constructor Description DoubleTypeWithPrecision(java.lang.Boolean precision, java.lang.Boolean notNull)Constructs an immutableDoubleTypeWithPrecision.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DoubleTypeWithPrecision.Builderbuilder()Creates a new fluent builder forDoubleTypeWithPrecision.intcompareTo(DoubleTypeWithPrecision other)booleanequals(java.lang.Object other)inthashCode()java.lang.StringtoString()DoubleTypeWithPrecisionwithNotNull(java.lang.Boolean notNull)Returns a copy of thisDoubleTypeWithPrecisionwithnotNullreplaced.DoubleTypeWithPrecisionwithPrecision(java.lang.Boolean precision)Returns a copy of thisDoubleTypeWithPrecisionwithprecisionreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.DoubleTypeWithPrecisiontype.
-
PRECISION
public static final Name PRECISION
Name of theopenGql.grammar.DoubleTypeWithPrecision.precisionfield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.DoubleTypeWithPrecision.notNullfield.
-
precision
public final java.lang.Boolean precision
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
DoubleTypeWithPrecision
public DoubleTypeWithPrecision(java.lang.Boolean precision, java.lang.Boolean notNull)Constructs an immutableDoubleTypeWithPrecision.
-
-
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(DoubleTypeWithPrecision other)
- Specified by:
compareToin interfacejava.lang.Comparable<DoubleTypeWithPrecision>
-
withPrecision
public DoubleTypeWithPrecision withPrecision(java.lang.Boolean precision)
Returns a copy of thisDoubleTypeWithPrecisionwithprecisionreplaced.
-
withNotNull
public DoubleTypeWithPrecision withNotNull(java.lang.Boolean notNull)
Returns a copy of thisDoubleTypeWithPrecisionwithnotNullreplaced.
-
builder
public static DoubleTypeWithPrecision.Builder builder()
Creates a new fluent builder forDoubleTypeWithPrecision.
-
-