Class LocalizedKey

java.lang.Object
org.openhab.core.i18n.LocalizedKey

@NonNullByDefault public class LocalizedKey extends Object
Common class (used as key) for i18n to store a localized object in a cache.
Author:
Christoph Weitkamp - Initial contribution
  • Constructor Details

    • LocalizedKey

      public LocalizedKey(Object id, @Nullable String locale)
  • Method Details

    • getKey

      public Object getKey()
    • getLocale

      public @Nullable String getLocale()
    • hashCode

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

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object