BeanWrapper auto-growing support for EnumSet / EnumMap

Issue: SPR-12483
This commit is contained in:
Juergen Hoeller
2014-11-29 20:49:06 +01:00
parent 7635e7b7f2
commit bfbd25a0e9
4 changed files with 92 additions and 10 deletions

View File

@@ -140,8 +140,10 @@ public abstract class CollectionFactory {
* Create the most appropriate collection for the given collection type.
* @param collectionClass the desired type of the target Collection
* @param elementType the collection's element type, or {@code null} if not known
* (note: only relevant for {@link EnumSet} creation)
* @param capacity the initial capacity
* @return the new Collection instance
* @since 4.1.3
* @see java.util.LinkedHashSet
* @see java.util.TreeSet
* @see java.util.EnumSet
@@ -229,8 +231,10 @@ public abstract class CollectionFactory {
* Create the most approximate map for the given map.
* @param mapClass the desired type of the target Map
* @param keyType the map's key type, or {@code null} if not known
* (note: only relevant for {@link EnumMap} creation)
* @param capacity the initial capacity
* @return the new Map instance
* @since 4.1.3
* @see java.util.LinkedHashMap
* @see java.util.TreeMap
* @see java.util.EnumMap