Class LocalizedRoadNumbers

java.lang.Object
com.here.sdk.routing.LocalizedRoadNumbers

public final class LocalizedRoadNumbers extends Object

The list of multiple names or titles for the same entity, possibly in different languages.

  • Field Details

    • items

      @NonNull public List<LocalizedRoadNumber> items

      The list of road number information items. Recommended to use helper methods instead of directly accessing the items.

  • Constructor Details

    • LocalizedRoadNumbers

      public LocalizedRoadNumbers()

      Creates a new instance.

  • Method Details

    • equals

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

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

      @Nullable public String getPreferredValueForLocales(@NonNull List<Locale> locales)

      Returns best name or title to be presented to the user according to specified locales. The locales are expected to be ordered by priority. If no matching locale found - the default is returned. In case of empty list returns null.

      Parameters:
      locales -

      Locales

      Returns:

      The best name or title to be presented to the user according to specified locales, default or null if list is empty.

    • getDefaultValue

      @Nullable public String getDefaultValue()

      Returns the default value.

      Returns:

      The default value or null` if list is empty.