/** * Expect any scalar parameter 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 */ public ComponentParameter(final Generic<?> componentValueType, final boolean emptyCollection) { this(null, new CollectionComponentParameter(componentValueType, emptyCollection)); }
/** * Expect any scalar parameter 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 */ public ComponentParameter(final Generic<?> componentValueType, final boolean emptyCollection) { this(null, new CollectionComponentParameter(componentValueType, emptyCollection)); }
/** * Expect any scalar parameter 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 keyType 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 */ public ComponentParameter(final Class<?> keyType, final Generic<?> componentValueType, final boolean emptyCollection) { this(null, new CollectionComponentParameter(keyType, componentValueType, emptyCollection)); }
/** * Expect any scalar parameter 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 keyType 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 */ public ComponentParameter(final Class<?> keyType, final Generic<?> componentValueType, final boolean emptyCollection) { this(null, new CollectionComponentParameter(keyType, componentValueType, emptyCollection)); }