|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SortedSetFactory
An abstract from specifically knowing how to create Sorted Sets. This allows different implementations to be swapped more easily (for example from memory bound to disk based).
| Method Summary | ||
|---|---|---|
void |
close()
Close any resources used by the factory - possibly database connections, file handles and the like. |
|
|
createSet(Class<T> clazz)
Creates a sorted set for known type. |
|
|
createSet(Class<T> clazz,
Comparator<?> comparator)
Creates a sorted set for a known type with a given comparator. |
|
| Method Detail |
|---|
<T> SortedSet<T> createSet(Class<T> clazz)
clazz - The type of set to create.
<T> SortedSet<T> createSet(Class<T> clazz,
Comparator<?> comparator)
clazz - The type of set to create.comparator - The comparator to use to determine the sort order.
void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||