Package openGql.grammar
Class FloatTypeWithPrecision
- java.lang.Object
-
- openGql.grammar.FloatTypeWithPrecision
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FloatTypeWithPrecision>
public class FloatTypeWithPrecision extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<FloatTypeWithPrecision>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameNOT_NULLName of theopenGql.grammar.FloatTypeWithPrecision.notNullfield.java.lang.BooleannotNullstatic NamePRECISION_AND_SCALEName of theopenGql.grammar.FloatTypeWithPrecision.precisionAndScalefield.Optional<PrecisionAndScale>precisionAndScalestatic NameTYPE_Name of theopenGql.grammar.FloatTypeWithPrecisiontype.
-
Constructor Summary
Constructors Constructor Description FloatTypeWithPrecision(Optional<PrecisionAndScale> precisionAndScale, java.lang.Boolean notNull)Constructs an immutableFloatTypeWithPrecision.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(FloatTypeWithPrecision other)booleanequals(java.lang.Object other)inthashCode()FloatTypeWithPrecisionwithNotNull(java.lang.Boolean notNull)Returns a copy of thisFloatTypeWithPrecisionwithnotNullreplaced.FloatTypeWithPrecisionwithPrecisionAndScale(Optional<PrecisionAndScale> precisionAndScale)Returns a copy of thisFloatTypeWithPrecisionwithprecisionAndScalereplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.FloatTypeWithPrecisiontype.
-
PRECISION_AND_SCALE
public static final Name PRECISION_AND_SCALE
Name of theopenGql.grammar.FloatTypeWithPrecision.precisionAndScalefield.
-
NOT_NULL
public static final Name NOT_NULL
Name of theopenGql.grammar.FloatTypeWithPrecision.notNullfield.
-
precisionAndScale
public final Optional<PrecisionAndScale> precisionAndScale
-
notNull
public final java.lang.Boolean notNull
-
-
Constructor Detail
-
FloatTypeWithPrecision
public FloatTypeWithPrecision(Optional<PrecisionAndScale> precisionAndScale, java.lang.Boolean notNull)
Constructs an immutableFloatTypeWithPrecision.
-
-
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(FloatTypeWithPrecision other)
- Specified by:
compareToin interfacejava.lang.Comparable<FloatTypeWithPrecision>
-
withPrecisionAndScale
public FloatTypeWithPrecision withPrecisionAndScale(Optional<PrecisionAndScale> precisionAndScale)
Returns a copy of thisFloatTypeWithPrecisionwithprecisionAndScalereplaced.
-
withNotNull
public FloatTypeWithPrecision withNotNull(java.lang.Boolean notNull)
Returns a copy of thisFloatTypeWithPrecisionwithnotNullreplaced.
-
-