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

io.serialized.client.projection.ProjectionsResponse Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package io.serialized.client.projection;

import java.util.List;

import static java.util.Collections.emptyList;
import static java.util.Collections.unmodifiableList;

public class ProjectionsResponse {

  private List> projections;

  private boolean hasMore;

  public ProjectionsResponse() {
  }

  public ProjectionsResponse(List> projections) {
    this.projections = projections;
  }

  public ProjectionsResponse(List> projections, boolean hasMore) {
    this.projections = projections;
    this.hasMore = hasMore;
  }

  public List> projections() {
    return projections == null ? emptyList() : unmodifiableList(projections);
  }

  public boolean hasMore() {
    return hasMore;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy