Class Function.BaseFunction<T>
- java.lang.Object
-
- com.bazaarvoice.jolt.modifier.function.Function.BaseFunction<T>
-
- Type Parameters:
T
- type of return value
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
Function.ListFunction
,Function.SingleFunction
,Lists.sort
,Lists.toList
,Math.max
,Math.min
- Enclosing interface:
- Function
public abstract static class Function.BaseFunction<T> extends java.lang.Object implements Function
Abstract class that processes var-args and calls two abstract methods If its single list arg, or many args, calls applyList() else calls applySingle()
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.bazaarvoice.jolt.modifier.function.Function
Function.ArgDrivenFunction<SOURCE,RETTYPE>, Function.ArgDrivenListFunction<S>, Function.ArgDrivenSingleFunction<S,R>, Function.BaseFunction<T>, Function.ListFunction, Function.SingleFunction<T>, Function.SquashFunction<T>
-
-
Constructor Summary
Constructors Constructor Description BaseFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Optional<java.lang.Object>
apply(java.lang.Object... args)
protected abstract Optional<java.lang.Object>
applyList(java.util.List<java.lang.Object> input)
protected abstract Optional<T>
applySingle(java.lang.Object arg)
-