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