Class Session
- java.lang.Object
-
- io.vertx.reactivex.ext.shell.session.Session
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<Session>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Session
create()
Create a new empty session.boolean
equals(Object o)
<T> T
get(String key)
Get some data from the sessionSession
getDelegate()
int
hashCode()
static Session
newInstance(Session arg)
Session
put(String key, Object obj)
Put some data in a session<T> T
remove(String key)
Remove some data from the sessionString
toString()
-
-
-
Method Detail
-
getDelegate
public Session getDelegate()
-
create
public static Session create()
Create a new empty session.- Returns:
- the created session
-
put
public Session put(String key, Object obj)
Put some data in a session- Parameters:
key
- the key for the dataobj
- the data- Returns:
- a reference to this, so the API can be used fluently
-
get
public <T> T get(String key)
Get some data from the session- Parameters:
key
- the key of the data- Returns:
- the data
-
remove
public <T> T remove(String key)
Remove some data from the session- Parameters:
key
- the key of the data- Returns:
- the data that was there or null if none there
-
-