Package liqp.filters
Class Date
java.lang.Object
liqp.LValue
liqp.filters.Filter
liqp.filters.Date
-
Field Summary
Fields inherited from class liqp.LValue
BREAK, CONTINUE, rubyDateTimeFormat -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDate()protectedDate(CustomDateFormatSupport<?> typeSupport) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDatePattern(String pattern) Adds a new Date-pattern to be used when parsing a string to a Date.apply(Object value, TemplateContext context, Object... params) Applies the filter on the 'value', with the given 'context'.static voidremoveDatePattern(String pattern) Removed a Date-pattern to be used when parsing a string to a Date.static FilterwithCustomDateType(CustomDateFormatSupport<?> typeSupport) Methods inherited from class liqp.LValue
areEqual, asAppendableObject, asArray, asBoolean, asFormattedNumber, asList, asMap, asNumber, asRubyDate, asStrictNumber, asString, asTemporal, canBeDouble, canBeInteger, canBeNumber, isArray, isBlank, isFalsy, isInteger, isMap, isNumber, isString, isTemporal, isTruthy, mapAsArray, temporalAsArray
-
Constructor Details
-
Date
protected Date() -
Date
-
-
Method Details
-
apply
Description copied from class:FilterApplies the filter on the 'value', with the given 'context'. -
addDatePattern
Adds a new Date-pattern to be used when parsing a string to a Date.- Parameters:
pattern- the pattern.
-
removeDatePattern
Removed a Date-pattern to be used when parsing a string to a Date.- Parameters:
pattern- the pattern.
-
withCustomDateType
-