T
- the type of objects stored in the collectionspublic interface CollectionProvider<T>
Modifier and Type | Method and Description |
---|---|
java.util.Collection<T> |
getCollection(int index)
Returns the collection with the given index.
|
int |
getCollectionCount()
Returns the number of collections.
|
java.lang.Class<? extends T> |
getCollectionValueClass()
Returns the class of the objects stored in the collections.
|
int getCollectionCount()
java.util.Collection<T> getCollection(int index) throws java.lang.IndexOutOfBoundsException
index
- the index of the collection to returnjava.lang.IndexOutOfBoundsException
- if the given index is negative or
greater or equal to getCollectionCount()
java.lang.Class<? extends T> getCollectionValueClass()