public class SearchResults<T> extends Object
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_LIMIT_EXCEEDED
Search was unsuccessful because the size limit is reached.
|
static int |
SUCCESS
Successful search.
|
static int |
TIME_LIMIT_EXCEEDED
Search was unsuccessful because the time limit is reached.
|
static int |
UNDEFINED_RESULT_COUNT
Search size when search fails.
|
Constructor and Description |
---|
SearchResults(int count,
Set<T> results,
int errorCode)
Constructs the
SearchResults object. |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the error code of search.
|
Set<T> |
getSearchResults()
Returns the search results.
|
int |
getTotalResultCount()
Returns the size of all results which match the search criteria.
|
public static final int SUCCESS
public static final int SIZE_LIMIT_EXCEEDED
public static final int TIME_LIMIT_EXCEEDED
public static final int UNDEFINED_RESULT_COUNT
public Set<T> getSearchResults()
public int getTotalResultCount()
getSearchResults()
method.
They are different when the size/time limits is reached.UNDEFINED_RESULT_COUNT
if search fails.public int getErrorCode()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.