Package lumis.portal.cache
Class CacheItem<T>
- java.lang.Object
-
- lumis.portal.cache.CacheItem<T>
-
- Type Parameters:
T
- the value type.
public class CacheItem<T> extends java.lang.Object
Represents a single entry in aPortalCache
.- Since:
- 10.0.0
- Version:
- $Revision: 19766 $ $Date: 2017-01-05 18:35:09 -0200 (Thu, 05 Jan 2017) $
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getGroups()
Returns the groups of this cache item.java.lang.String
getKey()
Returns the key of this cache item.T
getValue()
Returns the value of this cache item.java.lang.String
toString()
-
-
-
Constructor Detail
-
CacheItem
public CacheItem(java.lang.String key, T value, java.lang.String... groups)
Creates a new cache item.- Parameters:
key
- the key.value
- the value.groups
- the groups.- Since:
- 10.0.0
-
CacheItem
public CacheItem(java.lang.String key, T value, java.util.Set<java.lang.String> groups)
Creates a new cache item.- Parameters:
key
- the key.value
- the value.groups
- the groups.- Since:
- 10.0.0
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Returns the key of this cache item.- Returns:
- the key.
- Since:
- 10.0.0
-
getValue
public T getValue()
Returns the value of this cache item.- Returns:
- the value.
- Since:
- 10.0.0
-
getGroups
public java.util.Set<java.lang.String> getGroups()
Returns the groups of this cache item.- Returns:
- the groups.
- Since:
- 10.0.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-