Package tech.ydb.yoj.repository.db.list
Class ListResult<T>
java.lang.Object
tech.ydb.yoj.repository.db.list.GenericListResult<T,T>
tech.ydb.yoj.repository.db.list.ListResult<T>
- All Implemented Interfaces:
Iterable<T>
Listing result page.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classListResult.ListResultBuilder<T extends Entity<T>>Nested classes/interfaces inherited from class tech.ydb.yoj.repository.db.list.GenericListResult
GenericListResult.Builder<T extends Entity<T>,R, Target> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Entity<T>>
@NonNull GenericListResult.Builder<T,T, ListResult<T>> builder(@NonNull ListRequest<T> request) static <T extends Entity<T>>
@NonNull ListResult<T>empty(@NonNull ListRequest<T> request) static <T extends Entity<T>>
@NonNull ListResult<T>forPage(@NonNull ListRequest<T> request, @NonNull List<T> entries) @NonNull ListResult<T>returnWithParams(ListRequest.ListingParams<T> overrideParams) @NonNull ListResult<T>transform(@NonNull UnaryOperator<T> transform) Methods inherited from class tech.ydb.yoj.repository.db.list.GenericListResult
first, forEach, getParams, getRequestSchema, isEmpty, iterator, last, size, spliterator, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
empty
@NonNull public static <T extends Entity<T>> @NonNull ListResult<T> empty(@NonNull @NonNull ListRequest<T> request) -
builder
@NonNull public static <T extends Entity<T>> @NonNull GenericListResult.Builder<T,T, builderListResult<T>> (@NonNull @NonNull ListRequest<T> request) -
forPage
@NonNull public static <T extends Entity<T>> @NonNull ListResult<T> forPage(@NonNull @NonNull ListRequest<T> request, @NonNull @NonNull List<T> entries) -
returnWithParams
@NonNull public @NonNull ListResult<T> returnWithParams(@NonNull ListRequest.ListingParams<T> overrideParams) -
transform
-