com.artima.place.attribute
Class Keywords.Cache

java.lang.Object
  |
  +--com.artima.place.attribute.Keywords.Cache
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Enclosing class:
Keywords

public static class Keywords.Cache
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Contains a set of cached keywords Set and its Locale, the cache for a Keywords object.

See Also:
Serialized Form

Constructor Summary
Keywords.Cache(java.util.Set cachedKeywords, java.util.Locale cachedLocale)
          Constructs a new Keywords.Cache with passed cached keywords Set and cached Locale.
 
Method Summary
 java.util.Set getKeywords()
          Returns the keywords Set contained in this Keywords.Cache.
 java.util.Locale getLocale()
          Returns the Locale contained in this Keywords.Cache, which represents the Locale of the keywords returned by the getKeywords method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Keywords.Cache

public Keywords.Cache(java.util.Set cachedKeywords,
                      java.util.Locale cachedLocale)
Constructs a new Keywords.Cache with passed cached keywords Set and cached Locale.
Parameters:
cachedKeywords - the cached keywords Set
cachedLocale - the Locale of the cached keywords
Throws:
NullPointerException - if either of the passed cachedKeywords or cachedLocale references are null
Method Detail

getKeywords

public java.util.Set getKeywords()
Returns the keywords Set contained in this Keywords.Cache. This method will never return null.
Returns:
a keywords Set

getLocale

public java.util.Locale getLocale()
Returns the Locale contained in this Keywords.Cache, which represents the Locale of the keywords returned by the getKeywords method. This method will never return null.
Returns:
a Locale for the keywords returned by the getKeywords method