public class DefaultSpeciesNewStrategy extends Object
Modifier and Type | Field and Description |
---|---|
static DefaultSpeciesNewStrategy |
INSTANCE |
Constructor and Description |
---|
DefaultSpeciesNewStrategy() |
Modifier and Type | Method and Description |
---|---|
<T> Collection<T> |
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.
|
<T> Collection<T> |
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.
|
public static final DefaultSpeciesNewStrategy INSTANCE
public <T> Collection<T> speciesNew(Collection<?> collection)
public <T> Collection<T> speciesNew(Collection<?> collection, int size)
Copyright © 2004–2016. All rights reserved.