- Type Parameters:
T - list request type
R - list result type (might be the same as T)
- All Implemented Interfaces:
Iterable<R>
- Direct Known Subclasses:
ListResult, ViewListResult
public abstract class GenericListResult<T,R>
extends Object
implements Iterable<R>
Common functionality for ListResult and ViewListResult: implementation of Iterable, last() first().
-
Nested Class Summary
Nested Classes
-
Constructor Summary
Constructors
-
Method Summary
final void
final boolean
final int
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GenericListResult
public GenericListResult()
-
Method Details
-
-
forEach
public final void forEach(@NonNull
@NonNull Consumer<? super R> action)
- Specified by:
forEach in interface Iterable<T>
-
-
stream
@NonNull
public final @NonNull Stream<R> stream()
-
size
public final int size()
-
isEmpty
public final boolean isEmpty()
-
-
-
-
getRequestSchema
@NonNull
public @NonNull Schema<T> getRequestSchema()