|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICollectionBuilder
A builder for Collection
instances. This is used as a plug-in for the
CollectionFactory
to provide different implementations.
Method Summary | ||
---|---|---|
|
newList()
Construct a List implementation with its implementation default
size. |
|
|
newList(Collection<T> other)
Construct a List implementation from another Collection
instance size. |
|
|
newList(int size)
Construct a List implementation with the given size. |
|
|
newMap()
Construct a Map implementation with the implementation default
size. |
|
|
newMap(int size)
Construct a Map implementation with the given size. |
|
|
newMap(int size,
float loadFactor)
Construct a Map implementation with the given size and
loadFactor. |
|
|
newMap(Map<K,V> other)
Construct a Map implementation from another instance. |
|
|
newQueue()
Construct a Queue implementation with the implementation default
size. |
|
|
newQueue(int size)
Construct a Queue implementation with the given size. |
|
|
newSet()
Construct a Set implementation with the implementation default
size. |
|
|
newSet(Collection<T> other)
Construct a Set implementation from another Collection
instance. |
|
|
newSet(int size)
Construct a Set implementation with the given size. |
|
Map |
newUntypedMap(int size)
Construct a Map implementation with the given size. |
|
Map |
newUntypedOrderedMap(int size)
Construct a Map implementation with the given size. |
Method Detail |
---|
<T> Set<T> newSet(int size)
Set
implementation with the given size.
T
- the type for the set elementssize
- the size
Set
implementation<T> Set<T> newSet(Collection<T> other)
Set
implementation from another Collection
instance. This copies the contents of the other collection into the newly
constructed implementation.
T
- the type for the set elementsother
- the other Collection
instance to construct the
Set
from
Set
implementation constructed from a
Collection
instance.<T> Set<T> newSet()
Set
implementation with the implementation default
size.
T
- the type for the set elements
Set
implementation<T> Queue<T> newQueue()
Queue
implementation with the implementation default
size.
T
- the type for the queue elements
Queue
implementation<T> Queue<T> newQueue(int size)
Queue
implementation with the given size.
T
- the type for the queue elementssize
- the size
Queue
implementation<T> List<T> newList()
List
implementation with its implementation default
size.
T
- the type for the list elements
List
implementation<T> List<T> newList(Collection<T> other)
List
implementation from another Collection
instance size.
T
- the type for the list elementsother
- the other Collection
to construct this list from
List
implementation constructed with the elements of
the other Collection
<T> List<T> newList(int size)
List
implementation with the given size.
T
- the type for the list elementssize
- the size
List
implementation<K,V> Map<K,V> newMap(int size)
Map
implementation with the given size.
K
- the type for the map keysV
- the type for the map valuessize
- the size
Map
implementationMap newUntypedOrderedMap(int size)
Map
implementation with the given size. The
implementation maintains insertion order and does not have any generic
type information.
size
- the size
Map
implementationMap newUntypedMap(int size)
Map
implementation with the given size. This returns
a map with no generic type information.
size
- the size
Map
implementation<K,V> Map<K,V> newMap(int size, float loadFactor)
Map
implementation with the given size and
loadFactor.
K
- the type for the map keysV
- the type for the map valuessize
- the sizeloadFactor
- the loadFactor
Map
implementation<K,V> Map<K,V> newMap(Map<K,V> other)
Map
implementation from another instance. This copies
the contents of the other map into the newly constructed implementation.
K
- the type for the map keysV
- the type for the map valuesother
- the other instance to construct this map from
Map
implementation constructed from the other instance.<K,V> Map<K,V> newMap()
Map
implementation with the implementation default
size.
K
- the type for the map keysV
- the type for the map values
Map
implementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |