| Modifier and Type | Field and Description |
|---|---|
| public static final DefaultSpeciesNewStrategy | |
| private static final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static <T> Collection | |
| public <T> Collection | speciesNew(Collection<?> collection)
Creates a new instance of a collection based on the class type of collection, not on the type of objects the collections contains. |
| public <T> Collection | speciesNew(Collection<?> collection, int size)
Creates a new instance of a collection based on the class type of collection and specified initial capacity, not on the type of objects the collections contains. |
| INSTANCE | back to summary |
|---|---|
| public static final DefaultSpeciesNewStrategy INSTANCE | |
| SIZE_CONSTRUCTOR_TYPES | back to summary |
|---|---|
| private static final Class<?>[] SIZE_CONSTRUCTOR_TYPES | |
| DefaultSpeciesNewStrategy | back to summary |
|---|---|
| public DefaultSpeciesNewStrategy() | |
| createNewInstanceForCollectionType | back to summary |
|---|---|
| private static <T> Collection | |
| speciesNew | back to summary |
|---|---|
| public <T> Collection Creates a new instance of a collection based on the class type of collection, not on the type of objects the collections contains.
e.g. | |
| speciesNew | back to summary |
|---|---|
| public <T> Collection Creates a new instance of a collection based on the class type of collection and specified initial capacity,
not on the type of objects the collections contains.
e.g. | |