@PublicApi public class SharedEntitySearchResult<E extends SharedEntity> extends Object implements EnclosedIterable<E>
EnclosedIterable.Functions, EnclosedIterable.ListResolver<T>| Constructor and Description |
|---|
SharedEntitySearchResult(EnclosedIterable<E> results,
boolean hasNext,
int totalResultCount) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
void |
foreach(Consumer<E> sink)
Apply the sink to all elements in the Collection.
|
List<E> |
getResults()
Prefer the
foreach(Consumer) method if the result size is large as it doesn't load everything into memory. |
int |
getTotalResultCount() |
int |
hashCode() |
boolean |
hasMoreResults() |
boolean |
isEmpty() |
int |
size() |
public SharedEntitySearchResult(EnclosedIterable<E> results, boolean hasNext, int totalResultCount)
public List<E> getResults()
foreach(Consumer) method if the result size is large as it doesn't load everything into memory.public boolean hasMoreResults()
public int getTotalResultCount()
size()public final void foreach(Consumer<E> sink)
EnclosedIterableforeach in interface EnclosedIterable<E extends SharedEntity>public int size()
size in interface EnclosedIterable<E extends SharedEntity>size in interface SizedEnclosedIterable.foreach(Consumer). Be careful depending on this size
being exact, as in many cases its best efforts value or may be unstable due to concurrent changes.public boolean isEmpty()
isEmpty in interface EnclosedIterable<E extends SharedEntity>isEmpty in interface SizedCopyright © 2002-2024 Atlassian. All Rights Reserved.