Example usage for com.vaadin.data.provider Query getLimit

List of usage examples for com.vaadin.data.provider Query getLimit

Introduction

In this page you can find the example usage for com.vaadin.data.provider Query getLimit.

Prototype

public int getLimit() 

Source Link

Document

Gets the limit of items to fetch.

Usage

From source file:org.geant.sat.ui.utils.EntityDetailsHelper.java

License:BSD License

@Override
public Stream<EntityDetails> fetch(Query<EntityDetails, String> query) {
    LOG.debug("query " + query.getOffset() + "/" + query.getLimit());
    return details.subList(query.getOffset(), query.getOffset() + (query.getLimit() - 1)).stream();
}