Interface IsLocaleItem

  • All Superinterfaces:
    Key
    All Known Implementing Classes:
    Currency, Language, Region, Script

    public interface IsLocaleItem
    extends Key
    Interface to map the locale item in order to get the name and search the items against the name instead of the value.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getItemsByName

        static <T extends IsLocaleItemList<T> getItemsByName​(T[] enumValues,
                                                               String name)
        Returns an unmodifiable list of items which are matching with the name passed as argument.
        Type Parameters:
        T - type of locale tag
        Parameters:
        enumValues - enumeration values of the locale tag-
        name - name to search in the object name and value
        Returns:
        an unmodifiable list of items which are matching with the name passed as argument
      • getName

        String getName()
        Returns the name of the locale item.
        Returns:
        the name of the locale item