public class InMemorySetRepository extends Object implements SetRepository
| Constructor and Description |
|---|
InMemorySetRepository() |
| Modifier and Type | Method and Description |
|---|---|
InMemorySetRepository |
doesNotSupportSets() |
boolean |
exists(String setSpec)
Checks if a specific sets exists in the data source.
|
ListSetsResult |
retrieveSets(int offset,
int length)
Returns a paged list of sets.
|
boolean |
supportSets()
Checks if the actual data source supports sets.
|
InMemorySetRepository |
withRandomSets(int number) |
InMemorySetRepository |
withSet(String name,
String spec) |
public InMemorySetRepository doesNotSupportSets()
public InMemorySetRepository withSet(String name, String spec)
public InMemorySetRepository withRandomSets(int number)
public boolean supportSets()
SetRepositorysupportSets in interface SetRepositorypublic ListSetsResult retrieveSets(int offset, int length)
SetRepositoryretrieveSets in interface SetRepositoryoffset - Starting offsetlength - Max size of the returned listpublic boolean exists(String setSpec)
SetRepositoryexists in interface SetRepositorysetSpec - Set specCopyright © 2017 DuraSpace. All Rights Reserved.