Package com.lokalized

Class LocalizedString.LanguageFormTranslationRange

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

@Immutable public static class LocalizedString.LanguageFormTranslationRange extends Object
Container for per-language-form cardinality translation information over a range (start, end) of values.
Author:
Mark Allen
  • Constructor Details

    • LanguageFormTranslationRange

      public LanguageFormTranslationRange(@Nonnull String start, @Nonnull String end)
      Constructs a translation range with the given start and end values.
      Parameters:
      start - the start value of the range, not null
      end - the end value of the range, not null
  • Method Details

    • toString

      @Nonnull public String 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
    • getStart

      @Nonnull public String getStart()
      The start value for this range.
      Returns:
      the start value for this range, not null
    • getEnd

      @Nonnull public String getEnd()
      The end value for this range.
      Returns:
      the end value for this range, not null