Class LocalizedString.LanguageFormSelector

java.lang.Object
com.lokalized.LocalizedString.LanguageFormSelector
Enclosing class:
LocalizedString

Defines a selector used by a multi-axis placeholder translation.

Each selector identifies an application-supplied placeholder value and the language-form family to derive from it.

Author:
Mark Allen
  • Constructor Details

    • LanguageFormSelector

      Constructs a selector with the given placeholder value name and language-form type.
      Parameters:
      value - the placeholder value to inspect, not null
      form - the language-form family to derive from the value, not null
  • Method Details

    • toString

      Generates a String representation of this object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this object, not null
    • equals

      public boolean equals(@Nullable Object other)
      Checks if this object is equal to another one.
      Overrides:
      equals in class Object
      Parameters:
      other - the object to check, null returns false
      Returns:
      true if this is equal to the other object, false otherwise
    • hashCode

      public int hashCode()
      A hash code for this object.
      Overrides:
      hashCode in class Object
      Returns:
      a suitable hash code
    • getValue

      Gets the placeholder value name for this selector.
      Returns:
      the placeholder value name for this selector, not null
    • getForm

      Gets the language-form family for this selector.
      Returns:
      the language-form family for this selector, not null