AssetPageList.java :  » Rule-Engine » drolls-5.0 » org » drools » repository » Java Open Source

Java Open Source » Rule Engine » drolls 5.0 
drolls 5.0 » org » drools » repository » AssetPageList.java
package org.drools.repository;

import java.util.ArrayList;
import java.util.List;

import javax.jcr.RangeIterator;

/**
 * Used for holding a page of asset data.
 *
 * @author Michael Neale
 */
public class AssetPageList {

  public final List<AssetItem> assets;
  public final boolean hasNext;
  public long currentPosition;

  public AssetPageList(List<AssetItem> categories, RangeIterator it) {
    this.assets = categories;
    this.hasNext = it.hasNext();
    this.currentPosition = it.getPosition();
  }

  public AssetPageList() {
    hasNext = false;
    currentPosition = 0;
    assets = new ArrayList<AssetItem>();
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.