Class VABLambdaProviderHelper
- java.lang.Object
-
- org.eclipse.basyx.vab.modelprovider.lambda.VABLambdaProviderHelper
-
public class VABLambdaProviderHelper extends Object
Helper class which allows to easily create properties as processed by theVABLambdaProvider
- Author:
- schnicke, espen
-
-
Constructor Summary
Constructors Constructor Description VABLambdaProviderHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,Object>
createCollection(Supplier<?> get, Consumer<?> set, Consumer<Object> insert, Consumer<Object> removeObject, Consumer<String> removeKey)
Creates a property referencing a collectionstatic Map<String,Object>
createMap(Supplier<?> get, Consumer<?> set, BiConsumer<String,Object> insert, Consumer<Object> removeObject, Consumer<String> removeKey)
Creates a property referencing a mapstatic Map<String,Object>
createSimple(Supplier<Object> get, Consumer<Object> set)
Creates a property referencing a simple value, e.g.
-
-
-
Method Detail
-
createSimple
public static Map<String,Object> createSimple(Supplier<Object> get, Consumer<Object> set)
Creates a property referencing a simple value, e.g. int, double, ..- Parameters:
get
- Method used to get the valueset
- Method used to set the value- Returns:
-
createMap
public static Map<String,Object> createMap(Supplier<?> get, Consumer<?> set, BiConsumer<String,Object> insert, Consumer<Object> removeObject, Consumer<String> removeKey)
Creates a property referencing a map- Parameters:
get
- Method used to get the mapset
- Method used to set the mapinsert
- Method used to insert an element into the mapremoveObject
- Method used to remove an object from the mapremoveKey
- Method used to remove a key from the map- Returns:
-
createCollection
public static Map<String,Object> createCollection(Supplier<?> get, Consumer<?> set, Consumer<Object> insert, Consumer<Object> removeObject, Consumer<String> removeKey)
Creates a property referencing a collection- Parameters:
get
- Method used to get the collectionset
- Method used to set the collectioninsert
- Method used to insert an element into the mapremoveObject
- Method used to remove an object from the mapremoveKey
- Method used to remove a key from the map- Returns:
-
-