S
- The source field typeT
- The target field typepublic class FieldChangeTrigger<S,T> extends Object implements Function<S,T>
Modifier and Type | Method and Description |
---|---|
T |
apply(S input) |
boolean |
canApply(S input) |
static <K,V> FieldChangeTrigger<K,V> |
create(String fieldName,
Function<K,V> action)
Creates a field change trigger with just an action.
|
static <K,V> FieldChangeTrigger<K,V> |
create(String fieldName,
Function<K,V> action,
Predicate<K> condition)
Creates a field change trigger with an action that will execute based on a condition.
|
String |
getTargetFieldName()
Returns the target field name
|
public static <K,V> FieldChangeTrigger<K,V> create(String fieldName, Function<K,V> action)
K
- The source field typeV
- The target field typefieldName
- The target field nameaction
- The action that will set the targetpublic static <K,V> FieldChangeTrigger<K,V> create(String fieldName, Function<K,V> action, Predicate<K> condition)
K
- The source field typeV
- The target field typefieldName
- The target field nameaction
- The action that may set the targetcondition
- The condition to check before performing the actionpublic String getTargetFieldName()
public boolean canApply(S input)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.