Class LocaleString

java.lang.Object
com.aoapps.lang.i18n.LocaleString

public class LocaleString extends Object
Associates a locale with a string. This is useful to manipulate or represent the string in a locale specific manner.
Author:
AO Industries, Inc.
  • Constructor Details

    • LocaleString

      public LocaleString(Locale locale, String value)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getLocale

      public Locale getLocale()
    • getValue

      public String getValue()
    • toLowerCase

      public LocaleString toLowerCase()
    • toUpperCase

      public LocaleString toUpperCase()
    • trim

      public LocaleString trim()
    • isEmpty

      public boolean isEmpty()
    • startsWith

      public boolean startsWith(String prefix)
    • startsWith

      public boolean startsWith(String prefix, int offset)
    • endsWith

      public boolean endsWith(String prefix)