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, subSequence
public 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 CharSequence
toString
in interface InternationalString
toString
in class AbstractInternationalString
public String toString(Locale locale)
toString
in interface InternationalString
toString
in class AbstractInternationalString
locale
- Ignored in the SampleInternationalString
implementation.Locale.getDefault()
,
Locale.ROOT
public boolean equals(Object object)
Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.