+ int getFractionDigits();
+
+ static int hashCode(final DecimalTypeDefinition type) {
+ return Objects.hash(type.getQName(), type.getUnknownSchemaNodes(), type.getBaseType(),
+ type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.getFractionDigits(),
+ type.getRangeConstraint().orElse(null));
+ }
+
+ static boolean equals(final DecimalTypeDefinition type, final Object obj) {
+ if (type == obj) {
+ return true;
+ }
+
+ final DecimalTypeDefinition other = TypeDefinitions.castIfEquals(DecimalTypeDefinition.class, type, obj);
+ return other != null && type.getFractionDigits() == other.getFractionDigits()
+ && type.getRangeConstraint().equals(other.getRangeConstraint());
+ }
+
+ static String toString(final DecimalTypeDefinition type) {
+ return TypeDefinitions.toStringHelper(type).add("fractionDigits", type.getFractionDigits()).toString();
+ }