/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Collection<String> bundles) { for (String bundle : bundles) { addBundle(bundle); } return this; }
/** * <p> * Adds the given collection of bundles to the current * {@link AssetRequestContext}. * </p> * * @param bundles * A collection of bundle names. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Collection<String> bundles) { for (String bundle : bundles) { addBundle(bundle); } return this; }
/** * <p> * Adds the given array of enum to the current {@link AssetRequestContext}.* * </p> * <p> * All enums are first processed by replacing "_" by "-" and by lowercasing * its value. * </p> * * @param bundles * An array containing the enums. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Enum<?>... bundles) { for (Enum<?> bundle : bundles) { addBundle(bundle); } return this; }
/** * <p> * Adds the given array of enum to the current {@link AssetRequestContext}.* * </p> * <p> * All enums are first processed by replacing "_" by "-" and by lowercasing * its value. * </p> * * @param bundles * An array containing the enums. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundles(Enum<?>... bundles) { for (Enum<?> bundle : bundles) { addBundle(bundle); } return this; }
/** * <p> * Adds the given enum (representing a bundle name) to the current * {@link AssetRequestContext}. * </p> * <p> * The passed enum is first processed by replacing "_" by "-" and by * lowercasing its value. * </p> * * @param bundle * The enum to add. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundle(Enum<?> bundle) { addBundle(bundle.toString().toLowerCase().replace("_", "-")); return this; }
/** * <p> * Adds the given enum (representing a bundle name) to the current * {@link AssetRequestContext}. * </p> * <p> * The passed enum is first processed by replacing "_" by "-" and by * lowercasing its value. * </p> * * @param bundle * The enum to add. * @return the current {@link AssetRequestContext}. */ public AssetRequestContext addBundle(Enum<?> bundle) { addBundle(bundle.toString().toLowerCase().replace("_", "-")); return this; }