@Override public Optional<RangeConstraint<BigDecimal>> getRangeConstraint() { return decimal.getRangeConstraint(); }
@Override public Optional<? extends RangeConstraint<?>> getRangeConstraint() { return decimal.getRangeConstraint(); }
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 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 int hashCode(final DecimalTypeDefinition type) { return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(), type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.getFractionDigits(), type.getRangeConstraint().orElse(null)); }
static int hashCode(final DecimalTypeDefinition type) { return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(), type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.getFractionDigits(), type.getRangeConstraint().orElse(null)); }
final DecimalTypeDefinition tmp = tmpBuilder.build(); if (!tmp.getRangeConstraint().equals(decimal.getRangeConstraint())) { return new Restrictions() { @Override final DecimalTypeDefinition base = decimal.getBaseType(); if (base != null && base.getBaseType() != null) { range = currentOrEmpty(decimal.getRangeConstraint(), base.getRangeConstraint()); } else { range = decimal.getRangeConstraint();
final DecimalTypeDefinition tmp = tmpBuilder.build(); if (!tmp.getRangeConstraint().equals(decimal.getRangeConstraint())) { return new Restrictions() { @Override final DecimalTypeDefinition base = decimal.getBaseType(); if (base != null && base.getBaseType() != null) { range = currentOrEmpty(decimal.getRangeConstraint(), base.getRangeConstraint()); } else { range = decimal.getRangeConstraint();