Package com.cloudinary.metadata
Class MetadataValidation.DateLessThan
- java.lang.Object
-
- org.cloudinary.json.JSONObject
-
- com.cloudinary.metadata.MetadataValidation
-
- com.cloudinary.metadata.MetadataValidation.ComparisonRule<java.util.Date>
-
- com.cloudinary.metadata.MetadataValidation.DateLessThan
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- MetadataValidation
public static class MetadataValidation.DateLessThan extends MetadataValidation.ComparisonRule<java.util.Date>
Less-than rule for dates.- 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
-
Fields inherited from class org.cloudinary.json.JSONObject
NULL
-
-
Constructor Summary
Constructors Constructor Description DateLessThan(java.util.Date value)
Create a new rule with the given date.DateLessThan(java.util.Date value, java.lang.Boolean equals)
Create a new rule with the given date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
putValue(java.util.Date value)
-
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 Detail
-
DateLessThan
public DateLessThan(java.util.Date value)
Create a new rule with the given date.- Parameters:
value
- The integer to reference in the rule
-
DateLessThan
public DateLessThan(java.util.Date value, java.lang.Boolean equals)
Create a new rule with the given date.- Parameters:
value
- The date to reference in the rule.equals
- Whether a field value equal to the rule value is considered valid.
-
-
Method Detail
-
putValue
protected void putValue(java.util.Date value)
- Overrides:
putValue
in classMetadataValidation.ComparisonRule<java.util.Date>
-
-