Package com.cloudinary.metadata
Class MetadataValidation.StringLength
java.lang.Object
org.cloudinary.json.JSONObject
com.cloudinary.metadata.MetadataValidation
com.cloudinary.metadata.MetadataValidation.StringLength
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- MetadataValidation
public static class MetadataValidation.StringLength extends MetadataValidation
A validator to validate string lengths
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class com.cloudinary.metadata.MetadataValidation
MetadataValidation.AndValidator, MetadataValidation.ComparisonRule<T>, MetadataValidation.DateGreaterThan, MetadataValidation.DateLessThan, MetadataValidation.IntGreaterThan, MetadataValidation.IntLessThan, MetadataValidation.StringLength -
Field Summary
Fields inherited from class com.cloudinary.metadata.MetadataValidation
EQUALS, GREATER_THAN, LESS_THAN, MAX, MIN, STRLEN, TYPE, VALUE -
Constructor Summary
Constructors Constructor Description StringLength(java.lang.Integer min, java.lang.Integer max)Create a new instance with the given min and max. -
Method Summary
Methods inherited from class org.cloudinary.json.JSONObject
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, write
-
Constructor Details
-
StringLength
public StringLength(java.lang.Integer min, java.lang.Integer max)Create a new instance with the given min and max.- Parameters:
min- Minimum valid string length.max- Maximum valid string length.
-