@Deprecated
public interface Function
Modifier and Type | Interface and Description |
---|---|
static class |
Function.ArgDrivenFunction<SOURCE,RETTYPE>
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that classifies first arg as special input and rest as regular
input.
|
static class |
Function.ArgDrivenListFunction<S>
Deprecated.
Extends ArgDrivenConverter to provide rudimentary abstraction to quickly
implement a function that works on an input list|array
i.e.
|
static class |
Function.ArgDrivenSingleFunction<S,R>
Deprecated.
Extends ArgDrivenConverter to provide rudimentary abstraction to quickly
implement a function that works on a single input
i.e.
|
static class |
Function.BaseFunction<T>
Deprecated.
Abstract class that processes var-args and calls two abstract methods
If its single list arg, or many args, calls applyList()
else calls applySingle()
|
static class |
Function.ListFunction
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that works on an List of input
i.e.
|
static class |
Function.SingleFunction<T>
Deprecated.
Abstract class that provides rudimentary abstraction to quickly implement
a function that works on an single value input
i.e.
|
static class |
Function.SquashFunction<T>
Deprecated.
squashNull is a special kind of null processing,the input is always a list or map as a singleton
|
Modifier and Type | Field and Description |
---|---|
static Function |
isNull
Deprecated.
Returns the first argument if it is null
spec - "key": ["=inNull", "otherValue" ]
input - "key": null
output - "key": null
input - "key": "value"
output - "key": "otherValue"
|
static Function |
isPresent
Deprecated.
Returns the first argument, null or otherwise
spec - "key": [ "=isPresent", "otherValue" ]
input - "key": null
output - "key": null
input - "key": "value"
output - "key": "value"
input - key is missing
output - "key": "otherValue"
|
static Function |
noop
Deprecated.
Does nothing
spec - "key": "=noop"
will cause the key to remain unchanged
|
static Function |
notNull
Deprecated.
Returns the first argument if in not null
spec - "key": ["=notNull", "otherValue" ]
input - "key": null
output - "key": "otherValue"
input - "key": "value"
output - "key": "value"
|
Modifier and Type | Method and Description |
---|---|
Optional<java.lang.Object> |
apply(java.lang.Object... args)
Deprecated.
|
static final Function noop
static final Function isPresent
static final Function notNull
static final Function isNull
Optional<java.lang.Object> apply(java.lang.Object... args)