io.swagger.util.AllowableValuesUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
The newest version!
package io.swagger.util;
import org.apache.commons.lang3.StringUtils;
public class AllowableValuesUtils {
public static AllowableValues create(String values) {
AllowableValues allowableValues = null;
if (StringUtils.isNotEmpty(values)) {
allowableValues = AllowableRangeValues.create(values);
if (allowableValues == null) {
allowableValues = AllowableEnumValues.create(values);
}
}
return allowableValues;
}
}