Class PropertyBuilder.GenericCollectionPropertyBuilder<V,C extends Iterable<V>>

java.lang.Object
net.sourceforge.pmd.properties.PropertyBuilder<PropertyBuilder.GenericCollectionPropertyBuilder<V,C>,C>
net.sourceforge.pmd.properties.PropertyBuilder.GenericCollectionPropertyBuilder<V,C>
Type Parameters:
V - Component type of the collection
C - Collection type for the property being built
Enclosing class:
PropertyBuilder<B extends PropertyBuilder<B,T>,T>

public static final class PropertyBuilder.GenericCollectionPropertyBuilder<V,C extends Iterable<V>> extends PropertyBuilder<PropertyBuilder.GenericCollectionPropertyBuilder<V,C>,C>
Generic builder for a collection-valued property. This class adds methods related to defaultValue(Iterable) to make its use more flexible. See e.g. defaultValues(Object, Object[]).

Note: this is designed to support arbitrary collections. Pre-7.0.0, the only collections available from the PropertyFactory are list types though.

Author:
Clément Fournier
Since:
6.10.0