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$ $Date$
-
-
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
-
-