|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SetFactory
This is the interface for a CollectionFactory that creates instances of Set.
HashSetFactory.INSTANCE| Method Summary | ||
|---|---|---|
|
create()
This method creates a new Collection instance. |
|
|
create(int capacity)
This method creates a new Collection instance with the given
initial capacity. |
|
| Methods inherited from interface net.sf.mmm.util.collection.api.CollectionFactory |
|---|
createGeneric, createGeneric, getCollectionImplementation, getCollectionInterface |
| Method Detail |
|---|
<E> Set<E> create()
Collection instance.Collection can NOT be bound
to the generic type <COLLECTION> because of limitations
in Java's generic type system. You need to work on the actual sub-interface
(e.g. ListFactory) to get the proper result type.
create in interface CollectionFactory<Set>E - the type of elements contained in the collection.
CollectionFactory.createGeneric()<E> Set<E> create(int capacity)
Collection instance with the given
initial capacity.Collection can NOT be bound
to the generic type <COLLECTION> because of limitations
in Java's generic type system. You need to work on the actual sub-interface
(e.g. ListFactory) to get the proper result type.
create in interface CollectionFactory<Set>E - the type of elements contained in the collection.capacity - is the initial capacity of the collection.
CollectionFactory.createGeneric(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||