.toString()) : null;
FloatRangeConstraint fc = new FloatRangeConstraint(floatMin, floatMax);
toConstraints.add(fc);
} else if (constraint instanceof IntegerConstraintType) {
IntegerConstraintType intDetails = (IntegerConstraintType) constraint;
Long longMin = (intDetails.getMinimum() != null) ? new Long(intDetails.getMinimum().toString())
: null;
Long longMax = (intDetails.getMaximum() != null) ? new Long(intDetails.getMaximum().toString())
: null;
IntegerRangeConstraint ic = new IntegerRangeConstraint(longMin, longMax);
toConstraints.add(ic);
} else if (constraint instanceof RegexConstraintType) {