Class DataKey<T>
java.lang.Object
org.qubership.atp.macros.core.processor.DataKey<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> DataKey<T> Create a new data key.booleanget(AbstractContext<?> dataContext) Get data.getName()getNonnull(AbstractContext dataContext) Get non null data.inthashCode()final booleanFor short, use MY_KEY.is(dataId) instead of MY_KEY.getName().equals(dataId)remove(AbstractContext<?> dataContext) set(AbstractContext<?> dataContext, T data) toString()
-
Constructor Details
-
DataKey
-
-
Method Details
-
create
Create a new data key.- Type Parameters:
T- type of data key- Parameters:
name- name- Returns:
- data key
-
getName
-
is
For short, use MY_KEY.is(dataId) instead of MY_KEY.getName().equals(dataId)- Parameters:
dataId- key name- Returns:
trueif name of DataKey equals todataId,falseotherwise
-
get
Get data.- Parameters:
dataContext- data context- Returns:
- data
-
getNonnull
Get non null data.- Parameters:
dataContext- data context- Returns:
- data
-
set
-
remove
-
toString
-
equals
-
hashCode
public int hashCode()
-