Package io.ryos.rhino.sdk.data
Class ContextImpl
- java.lang.Object
-
- io.ryos.rhino.sdk.data.ContextImpl
-
- All Implemented Interfaces:
Context
- Direct Known Subclasses:
SimulationSession
,UserSessionImpl
public class ContextImpl extends java.lang.Object implements Context
-
-
Constructor Summary
Constructors Constructor Description ContextImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Context
add(java.lang.String key, java.lang.Object value)
Puts a new key - value pair to the context.void
empty()
Empties the context.<T> java.util.Optional<T>
get(java.lang.String key)
Reclaims the object from the context.
-
-
-
Method Detail
-
add
public Context add(java.lang.String key, java.lang.Object value)
Description copied from interface:Context
Puts a new key - value pair to the context.
-
get
public <T> java.util.Optional<T> get(java.lang.String key)
Description copied from interface:Context
Reclaims the object from the context.
-
-