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