Class DefaultTransientStorage
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.model.impl.DefaultTransientStorage
-
- All Implemented Interfaces:
InterceptorContext.TransientStorage
public class DefaultTransientStorage extends java.lang.Object implements InterceptorContext.TransientStorage
-
-
Constructor Summary
Constructors Constructor Description DefaultTransientStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object key)Allows you to check if a given key is present in the storage.java.lang.Objectget(java.lang.Object key)Get value from the storage.voidput(java.lang.Object key, java.lang.Object value)Put value in the storagevoidremove(java.lang.Object key)Removes value assigned with a given key.
-
-
-
Method Detail
-
get
public java.lang.Object get(java.lang.Object key)
Description copied from interface:InterceptorContext.TransientStorageGet value from the storage.- Specified by:
getin interfaceInterceptorContext.TransientStorage- Parameters:
key- attribute's key- Returns:
- value assigned with the key or null if there is no value
-
put
public void put(java.lang.Object key, java.lang.Object value)Description copied from interface:InterceptorContext.TransientStoragePut value in the storage- Specified by:
putin interfaceInterceptorContext.TransientStorage- Parameters:
key- attribute's keyvalue- value to be store
-
contains
public boolean contains(java.lang.Object key)
Description copied from interface:InterceptorContext.TransientStorageAllows you to check if a given key is present in the storage.- Specified by:
containsin interfaceInterceptorContext.TransientStorage- Parameters:
key- attribute's key- Returns:
- true if the key is present in the storage
-
remove
public void remove(java.lang.Object key)
Description copied from interface:InterceptorContext.TransientStorageRemoves value assigned with a given key.- Specified by:
removein interfaceInterceptorContext.TransientStorage- Parameters:
key- attribute's key
-
-