Class PrecisionAndScale

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PrecisionAndScale>

    public class PrecisionAndScale
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<PrecisionAndScale>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the openGql.grammar.PrecisionAndScale type.
      • PRECISION

        public static final Name PRECISION
        Name of the openGql.grammar.PrecisionAndScale.precision field.
      • SCALE

        public static final Name SCALE
        Name of the openGql.grammar.PrecisionAndScale.scale field.
      • NOT_NULL

        public static final Name NOT_NULL
        Name of the openGql.grammar.PrecisionAndScale.notNull field.
      • precision

        public final java.lang.String precision
      • scale

        public final Optional<java.lang.String> scale
      • notNull

        public final java.lang.Boolean notNull
    • Constructor Detail

      • PrecisionAndScale

        public PrecisionAndScale​(java.lang.String precision,
                                 Optional<java.lang.String> scale,
                                 java.lang.Boolean notNull)
        Constructs an immutable PrecisionAndScale.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object