@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 |
---|---|
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() |
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)
EnclosedIterable
foreach
in interface EnclosedIterable<E extends SharedEntity>
public int size()
size
in interface EnclosedIterable<E extends SharedEntity>
size
in interface Sized
EnclosedIterable.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 Sized
Copyright © 2002-2015 Atlassian. All Rights Reserved.