/** * Make an automatic {@link Alternator} from the specified objects. * * @param list objects to alternate over * @return a new, automatic Alternator with the specified values or * <code>null</code> if there are none specified. * @since VelocityTools 1.3 */ public Alternator auto(Object... list) { return make(true, list); }
/** * Make an automatic {@link Alternator} from the specifed objects. * @param list values to alternate over * @return alternator */ public Alternator make(Object... list) { return make(autoAlternateDefault, list); }
/** * Make a manual {@link Alternator} from the specified objects. * * @param list objects to alternate over * @return a new, manual Alternator with the values in the array or * <code>null</code> if the array is <code>null</code>. * @since VelocityTools 1.3 */ public Alternator manual(Object... list) { return make(false, list); } }