|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceKey
A unique key that describes the resource using the specified name and the locale. The additional encoding is used for loading the resource, but is not part of the key itself, which means that it is not part of the hashCode and equals methods. These two methods must be implemented but only target the name and the locale.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Must implement the equals method |
java.lang.String |
getEncoding()
Returns the encoding of the resource |
java.util.Locale |
getLocale()
Returns the locale of the resource |
java.lang.String |
getName()
Returns the name of the resource |
ResourceKey |
getParent()
Returns a resource key with the same name and the parent locale If the locale is already null, there is no parent and it returns null. |
int |
hashCode()
Must implement the hashCode method |
java.lang.String |
toString()
Returns a textual representation |
Method Detail |
---|
java.lang.String getName()
java.util.Locale getLocale()
java.lang.String getEncoding()
ResourceKey getParent()
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- the object to compare
java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |