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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharcharAt(int index) intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Constructor Details
-
LocalizedString
Instantiates a newLocalizedStringinstance.- 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:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-