Class NoopFetcher<T>
- java.lang.Object
-
- com.atlassian.confluence.impl.service.finder.NoopFetcher<T>
-
- All Implemented Interfaces:
ManyFetcher<T>
,SingleFetcher<T>
- Direct Known Subclasses:
NoopContentFinder
,NoopGroupFinder
,NoopPersonFinder
,NoopPersonSearcher
,NoopSpaceFinder
public class NoopFetcher<T> extends Object implements SingleFetcher<T>, ManyFetcher<T>
A Fetcher that always returns nothing- Since:
- 6.13.6, 6.14.4, 6.15.4
-
-
Constructor Summary
Constructors Constructor Description NoopFetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<T>
fetch()
PageResponse<T>
fetchMany(PageRequest request)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.api.service.finder.SingleFetcher
fetchOne, fetchOneOrNull, fetchOrNull
-
-
-
-
Method Detail
-
fetchMany
public PageResponse<T> fetchMany(PageRequest request)
- Specified by:
fetchMany
in interfaceManyFetcher<T>
- Parameters:
request
- - a pageRequest to use to paginate the response, this will be limited if it exceeds system limits- Returns:
- a pageResponse of given type that matches the given restrictions
-
fetch
public Optional<T> fetch()
- Specified by:
fetch
in interfaceSingleFetcher<T>
-
-