|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - Type of object this repository deals with.public interface RandomRepository<T extends Identifiable>
Repository with the capability of getting random objects.
| Method Summary | |
|---|---|
T |
getRandom()
Gets a random object from the repository. |
List<Long> |
getRandomIds(Integer maxResults)
Returns a list of random IDs. |
List<T> |
getRandomList(Integer maxResults)
Gets a random list of objects from the repository. |
| Methods inherited from interface com.jdroid.java.repository.Repository |
|---|
add, addAll, findByField, get, getAll, getAll, getSize, getUniqueInstance, isEmpty, remove, remove, removeAll, removeAll, replaceAll, update |
| Method Detail |
|---|
List<T> getRandomList(Integer maxResults)
maxResults - Maximum quantity of objects to get.
T getRandom()
List<Long> getRandomIds(Integer maxResults)
maxResults - Maximum amount of IDs to return.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||