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

io.ebeaninternal.api.BeanIdList Maven / Gradle / Ivy

There is a newer version: 15.6.0
Show newest version
package io.ebeaninternal.api;

import java.util.List;

/**
 * Wrapper of the list of Id's.
 */
public class BeanIdList {

  private final List idList;

  private boolean hasMore;

  public BeanIdList(List idList) {
    this.idList = idList;
  }

  /**
   * Add an Id to the list.
   */
  public void add(Object id) {
    idList.add(id);
  }

  /**
   * Return the list of Id's.
   */
  public List getIdList() {
    return idList;
  }

  /**
   * Return true if max rows was hit and there is more rows to fetch.
   */
  public boolean isHasMore() {
    return hasMore;
  }

  /**
   * Set to true when max rows is hit and there are more rows to fetch.
   */
  public void setHasMore(boolean hasMore) {
    this.hasMore = hasMore;
  }

}