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.getRangeConstraints());
+ type.getRangeConstraint().orElse(null));
}
static int hashCode(final EmptyTypeDefinition type) {
static int hashCode(final IntegerTypeDefinition type) {
return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(),
- type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.getRangeConstraints());
+ type.getUnits().orElse(null), type.getDefaultValue().orElse(null), type.getRangeConstraint().orElse(null));
}
static int hashCode(final LeafrefTypeDefinition type) {
static int hashCode(final UnsignedIntegerTypeDefinition type) {
return Objects.hash(type.getPath(), type.getUnknownSchemaNodes(), type.getBaseType(), type.getUnits(),
- type.getDefaultValue(), type.getRangeConstraints());
+ type.getDefaultValue(), type.getRangeConstraint());
}
static boolean equals(final BinaryTypeDefinition type, final Object obj) {
final DecimalTypeDefinition other = castIfEquals(DecimalTypeDefinition.class, type, obj);
return other != null && type.getFractionDigits().equals(other.getFractionDigits())
- && type.getRangeConstraints().equals(other.getRangeConstraints());
+ && type.getRangeConstraint().equals(other.getRangeConstraint());
}
static boolean equals(final EmptyTypeDefinition type, final Object obj) {
}
final IntegerTypeDefinition other = castIfEquals(IntegerTypeDefinition.class, type, obj);
- return other != null && type.getRangeConstraints().equals(other.getRangeConstraints());
+ return other != null && type.getRangeConstraint().equals(other.getRangeConstraint());
}
static boolean equals(final LeafrefTypeDefinition type, final Object obj) {
}
final UnsignedIntegerTypeDefinition other = castIfEquals(UnsignedIntegerTypeDefinition.class, type, obj);
- return other != null && type.getRangeConstraints().equals(other.getRangeConstraints());
+ return other != null && type.getRangeConstraint().equals(other.getRangeConstraint());
}
static String toString(final BinaryTypeDefinition type) {
static String toString(final DecimalTypeDefinition type) {
return toStringHelper(type).add("fractionDigits", type.getFractionDigits())
- .add("range", type.getRangeConstraints()).toString();
+ .add("range", type.getRangeConstraint().orElse(null)).toString();
}
static String toString(final EmptyTypeDefinition type) {
}
static String toString(final IntegerTypeDefinition type) {
- return toStringHelper(type).add("range", type.getRangeConstraints()).toString();
+ return toStringHelper(type).add("range", type.getRangeConstraint().orElse(null)).toString();
}
static String toString(final LeafrefTypeDefinition type) {
}
static String toString(final UnsignedIntegerTypeDefinition type) {
- return toStringHelper(type).add("range", type.getRangeConstraints()).toString();
+ return toStringHelper(type).add("range", type.getRangeConstraint().orElse(null)).toString();
}
}