/** * Expect any scalar paramter of the appropriate type or the collecting type * {@link java.lang.reflect.Array},{@link java.util.Collection}or {@link java.util.Map}. * The components in the collection will be of the specified type. * * @param componentValueType the component's type (ignored for an Array) * @param emptyCollection <code>true</code> allows the collection to be empty * @since 1.1 */ public ComponentParameter(Class componentValueType, boolean emptyCollection) { this(null, new CollectionComponentParameter(componentValueType, emptyCollection)); }
/** * Expect any scalar paramter of the appropriate type or the collecting type * {@link java.lang.reflect.Array},{@link java.util.Collection}or {@link java.util.Map}. * The components in the collection will be of the specified type and their adapter's key * must have a particular type. * * @param componentKeyType the component adapter's key type * @param componentValueType the component's type (ignored for an Array) * @param emptyCollection <code>true</code> allows the collection to be empty * @since 1.1 */ public ComponentParameter(Class componentKeyType, Class componentValueType, boolean emptyCollection) { this(null, new CollectionComponentParameter(componentKeyType, componentValueType, emptyCollection)); }