All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.EmptyPagedList Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean;

import java.util.Collections;
import java.util.List;
import java.util.concurrent.Future;

/**
 * @deprecated migrate to using {@link PagedList#emptyList()} only.
 * 

* An empty PagedList. *

* For use in application code when we need to return a PagedList but don't want to * execute a query. *

* *
{@code
 *
 *   PagedList empty = PagedList.emptyList();
 *
 * }
*/ @Deprecated(forRemoval = true) public final class EmptyPagedList implements PagedList { @Override public void loadCount() { // do nothing } @Override public Future getFutureCount() { return null; } @Override public List getList() { return Collections.emptyList(); } @Override public int getTotalCount() { return 0; } @Override public int getTotalPageCount() { return 0; } @Override public int getPageSize() { return 0; } @Override public int getPageIndex() { return 0; } @Override public boolean hasNext() { return false; } @Override public boolean hasPrev() { return false; } @Override public String getDisplayXtoYofZ(String to, String of) { return ""; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy