com.artima.place.attribute
Class Name.Cache

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

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

Contains a String cached name and its Locale, the cache for a Name object.

See Also:
Serialized Form

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

Constructor Detail

Name.Cache

public Name.Cache(java.lang.String cachedName,
                  java.util.Locale cachedLocale)
Constructs a new Name.Cache with passed String cached name and cached Locale.
Parameters:
cachedName - the String cached name
cachedLocale - the Locale of the cached name
Throws:
NullPointerException - if either of the passed cachedName or cachedLocale references are null
Method Detail

getName

public java.lang.String getName()
Returns the String name contained in this Name.Cache. This method will never return null.
Returns:
a String name

getLocale

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