minified-modrinth/com.dervarex.minified.modrinth
SearchResult
@API(status = STABLE)
public final class SearchResult<T>Generic search result container used by Modrinth endpoints.
- Type parameters
T
Fields
public T[] hitspublic int offsetpublic int limitpublic int totalHitsConstructors
public SearchResult()public SearchResult(T[] hits, int offset, int limit, int totalHits)| Parameters | ||
|---|---|---|
hits | T[] | |
offset | int | |
limit | int | |
totalHits | int | |
Methods
public T[] getHits()| Returns | ||
|---|---|---|
T[] | ||
public boolean isEmpty()| Returns | ||
|---|---|---|
boolean | ||
public String toString()| Returns | ||
|---|---|---|
String | ||
Overrides Object.toString()
Used by
Methods of other types that accept or return SearchResult.