Class Function.SingleFunction<T>
- java.lang.Object
-
- com.bazaarvoice.jolt.modifier.function.Function.BaseFunction<T>
-
- com.bazaarvoice.jolt.modifier.function.Function.SingleFunction<T>
-
- Type Parameters:
T
- type of return value
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
Math.abs
,Objects.toBoolean
,Objects.toDouble
,Objects.toInteger
,Objects.toLong
,Objects.toString
,Strings.toLowerCase
,Strings.toUpperCase
,Strings.trim
- Enclosing interface:
- Function
public abstract static class Function.SingleFunction<T> extends Function.BaseFunction<T>
Abstract class that provides rudimentary abstraction to quickly implement a function that works on an single value input i.e. toUpperCase a string
-
-
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 SingleFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Optional<java.lang.Object>
applyList(java.util.List<java.lang.Object> input)
protected abstract Optional<T>
applySingle(java.lang.Object arg)
-
Methods inherited from class com.bazaarvoice.jolt.modifier.function.Function.BaseFunction
apply
-
-
-
-
Method Detail
-
applyList
protected final Optional<java.lang.Object> applyList(java.util.List<java.lang.Object> input)
- Specified by:
applyList
in classFunction.BaseFunction<T>
-
applySingle
protected abstract Optional<T> applySingle(java.lang.Object arg)
- Specified by:
applySingle
in classFunction.BaseFunction<T>
-
-