classstableSource
@API(status = STABLE)
public final class SearchResult<T>

Generic search result container used by Modrinth endpoints.

Type parameters
  • T

Fields

public T[] hits
public int offset
public int limit
public int totalHits

Constructors

public SearchResult()
public SearchResult(T[] hits, int offset, int limit, int totalHits)
Parameters
hitsT[]
offsetint
limitint
totalHitsint

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.