We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c5b23 commit 16fbcd4Copy full SHA for 16fbcd4
1 file changed
src/main/java/eu/openanalytics/containerproxy/model/runtime/Proxy.java
@@ -194,6 +194,15 @@ public <T> T getRuntimeObject(RuntimeValueKey<T> key) {
194
return runtimeValue.getObject();
195
}
196
197
+ public <T> T getRuntimeObjectOrNull(RuntimeValueKey<T> key) {
198
+ Objects.requireNonNull(key, "key may not be null");
199
+ RuntimeValue runtimeValue = runtimeValues.get(key);
200
+ if (runtimeValue == null) {
201
+ return null;
202
+ }
203
+ return runtimeValue.getObject();
204
205
+
206
public <T> String getRuntimeValue(RuntimeValueKey<T> key) {
207
Objects.requireNonNull(key, "key may not be null");
208
RuntimeValue runtimeValue = runtimeValues.get(key);
0 commit comments