public interface RosettaModelObjectSupplier
Simple interface to define a RosettaModelObject look up based on type and global key.
-
Method Summary
<T extends com.rosetta.model.lib.RosettaModelObject>
Optional<T>
Returns a RosettaModelObject of type T with given globalKey, if found.
-
Method Details
-
get
<T extends com.rosetta.model.lib.RosettaModelObject>
Optional<T> get(Class<T> clazz,
String globalKey)
Returns a RosettaModelObject of type T with given globalKey, if found.
- Parameters:
clazz - RosettaModelObject class
globalKey - - global key
- Returns:
- returns object matching type and key