public class SimpleInternationalString extends AbstractInternationalString implements Serializable
String instance, then
the SimpleInternationalString(String) constructor is okay. Otherwise use
the Types.toInternationalString(CharSequence) method.
Defined in the sis-utility module
| Constructor and Description |
|---|
SimpleInternationalString(String text)
Creates a new instance from the given string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Compares this international string with the specified object for equality.
|
int |
hashCode()
Returns a hash code value for this international text.
|
String |
toString()
Returns the string representation, which is unique for all locales.
|
String |
toString(Locale locale)
Returns the same string for all locales.
|
charAt, compareTo, formatTo, length, subSequenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointspublic SimpleInternationalString(String text)
CharSequence interface, then use
the Types.toInternationalString(CharSequence) method instead.text - the string for all locales.public String toString()
toString in interface CharSequencetoString in interface InternationalStringtoString in class AbstractInternationalStringpublic String toString(Locale locale)
toString in interface InternationalStringtoString in class AbstractInternationalStringlocale - ignored in the SimpleInternationalString implementation.String.Locale.getDefault(),
Locale.ROOTpublic boolean equals(Object object)
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.