Same as {@link #oxford(Object[])} for the specified locale.

@param items
The items array
@param locale
Target locale
@return human readable representation of a bounded list of items
333705
public static String oxford(Object[] items, Locale locale)
    {
        return oxford(items, -1, null, locale);
    }
1175087
private List<Entry> parseEntries(final List<Element> eEntries, final Locale locale) {

        final List<Entry> entries = new ArrayList<Entry>();
        for (final Element entry : eEntries) {
            entries.add(parseEntry(entry, locale));
        }

        return Lists.emptyToNull(entries);

    }
719444
private String stringValueOf(List<Locale> locales) {
        StringBuffer sb = new StringBuffer();
        for (Locale locale : locales) {
            if (sb.length() > 0) {
                sb.append(",");
            }
            sb.append(locale.toString());
        }
        return sb.toString();
    }
896739
public static List<Locale> getLocales(List<String> localeNames) {

        List<Locale> result = new ArrayList<Locale>(localeNames.size());
        for (int i = 0; i < localeNames.size(); i++) {
            result.add(getLocale(localeNames.get(i).toString().trim()));
        }
        return result;
    }
429333
public void setItems(java.util.Collection<ApiMapping> items) {
        if (items == null) {
            this.items = null;
            return;
        }

        this.items = new java.util.ArrayList<ApiMapping>(items);
    }
256160
public static List<Item> toItemList(List<Map<String, AttributeValue>> items) {
        if (items == null) {
            return Collections.emptyList();
        }
        List<Item> result = new ArrayList<Item>(items.size());
        for (Map<String, AttributeValue> item : items) {
            result.add(toItem(item));
        }
        return result;
    }
1285472
public static FullTextIndex fullTextIndex(@NonNull FullTextIndexItem... items) {
        if (items == null) {
            throw new IllegalArgumentException("items cannot be null.");
        }
        return new FullTextIndex(items);
    }
238616
public static Defaultable<Boolean> ifAllExplicitlySet(Defaultable<?>... items) {
        return bool(() -> {
            for (Defaultable<?> item : items) {
                if (!item.isExplicit()) {
                    return false;
                }
            }
            return true;
        });
    }
612597
public void setLocales(Locale... locales) {

    String[] array = new String[locales.length];
    for (int i = 0; i < locales.length; i++) {
      array[i] = locales[i].toString();
    }
    setLocales(array);
  }
1236687
public Iterable<Di18n> queryByLocale(java.lang.String locale) {
    return queryByField(null, Di18nMapper.Field.LOCALE.getFieldName(), locale);
  }
988883
public List<LocaleBean> getLocales(Locale currentLocale) {
        List<LocaleBean> locales = new ArrayList<>();

        // get the array of locales available from the portal
        List<Locale> portalLocales = localeManagerFactory.getPortalLocales();
        for (Locale locale : portalLocales) {
            if (currentLocale != null) {
                // if a current locale is available, display language names
                // using the current locale
                locales.add(new LocaleBean(locale, currentLocale));
            } else {
                locales.add(new LocaleBean(locale));
            }
        }
        return locales;
    }
261583
public Translation getTranslation(String locale) {
        LocaleCodeSpecification.assertCode(locale);

        return this.getTranslations().get(locale);
    }
885706
private void addToLocaleList(List localeList, List<Locale> locales) {
        if (locales != null) {
            for (Locale locale : locales) {
                if (locale != null && !localeList.contains(locale)) localeList.add(locale);
            }
        }
    }
744077
public ModelAdapter<Model, Item> set(List<Model> items) {
        return set(items, true);
    }
834555
public static <T> List<T> filter(Collection<T> items, Predicate<T> predicate) {
        List<T> result = new ArrayList<>();

        if (!isEmpty(items)) {
            for (T item : items) {
                if (predicate.apply(item)) {
                    result.add(item);
                }
            }
        }

        return result;
    }
988941
public static LocaleWrapper findLocaleFromString(final CollectionWrapper<LocaleWrapper> locales, final String localeString) {
        if (localeString == null) return null;

        for (final LocaleWrapper locale : locales.getItems()) {
            if (localeString.equals(locale.getValue())) {
                return locale;
            }
        }

        return null;
    }
1274818
public static final <T> List<T> create(T... items)
    {
        List<T> list = new ArrayList<>();
        Collections.addAll(list, items);
        return list;
    }