All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.util.AllowableValuesUtils Maven / Gradle / Ivy

There is a newer version: 2.0.0-rc2
Show 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy