Package com.hubspot.jinjava.lib.filter
Class PlusTimeFilter
- java.lang.Object
-
- com.hubspot.jinjava.lib.filter.BaseDateFilter
-
- com.hubspot.jinjava.lib.filter.PlusTimeFilter
-
- All Implemented Interfaces:
AdvancedFilter
,Filter
,Importable
public class PlusTimeFilter extends BaseDateFilter
ChronoUnit
for valid time units
-
-
Constructor Summary
Constructors Constructor Description PlusTimeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
filter(Object var, JinjavaInterpreter interpreter, Object[] args, Map<String,Object> kwargs)
Filter the specified template variable within the context of a render process.String
getName()
-
Methods inherited from class com.hubspot.jinjava.lib.filter.BaseDateFilter
getTemporalUnit, parseChronoUnit, parseDiffAmount
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.hubspot.jinjava.lib.filter.AdvancedFilter
filter
-
Methods inherited from interface com.hubspot.jinjava.lib.filter.Filter
filter, preserveSafeString
-
-
-
-
Method Detail
-
filter
public Object filter(Object var, JinjavaInterpreter interpreter, Object[] args, Map<String,Object> kwargs)
Description copied from interface:AdvancedFilter
Filter the specified template variable within the context of a render process. {{ myvar|myfiltername(arg1,arg2) }}- Parameters:
var
- the variable which this filter should operate oninterpreter
- current interpreter contextargs
- any positional arguments passed to this filter invocationkwargs
- any named arguments passed to this filter invocation- Returns:
- the filtered form of the given variable
-
getName
public String getName()
-
-