Package rife.tools
Class LocalizedString
java.lang.Object
rife.tools.LocalizedString
- All Implemented Interfaces:
CharSequence
This class makes it possible to always keep a localized string up-to-date.
By providing it with a lookup key instead of the final text, it is able to
always provide a text representation according to the active default
localization settings.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) int
length()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
LocalizedString
Instantiates a newLocalizedString
instance.- Parameters:
key
- the key that will be used to look up the localized string- Since:
- 1.0
-
-
Method Details
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-