com.artima.place.attribute
Class Description.Cache
java.lang.Object
|
+--com.artima.place.attribute.Description.Cache
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- Enclosing class:
- Description
- public static class Description.Cache
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable
Contains a String
cached description and its Locale
, the cache
for a Description
object.
- See Also:
- Serialized Form
Constructor Summary |
Description.Cache(java.lang.String cachedDescription,
java.util.Locale cachedLocale)
Constructs a new Description.Cache with passed String cached description and cached Locale . |
Method Summary |
java.lang.String |
getDescription()
Returns the String description contained in this Description.Cache . |
java.util.Locale |
getLocale()
Returns the Locale contained in this Description.Cache , which represents
the Locale of the description returned by the getDescription method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Description.Cache
public Description.Cache(java.lang.String cachedDescription,
java.util.Locale cachedLocale)
- Constructs a new
Description.Cache
with passed String
cached description and cached Locale
.
- Parameters:
cachedDescription
- the String
cached descriptioncachedLocale
- the Locale
of the cached description- Throws:
NullPointerException
- if either of the passed
cachedDescription
or cachedLocale
references are
null
getDescription
public java.lang.String getDescription()
- Returns the
String
description contained in this Description.Cache
. This
method will never return null
.
- Returns:
- a
String
description
getLocale
public java.util.Locale getLocale()
- Returns the
Locale
contained in this Description.Cache
, which represents
the Locale
of the description returned by the getDescription
method. This
method will never return null
.
- Returns:
- a
Locale
for the description returned by the getDescription
method