IterableQuery.java :  » Google-tech » siena » siena » Java Open Source

Java Open Source » Google tech » siena 
siena » siena » IterableQuery.java
package siena;

import java.util.Iterator;


public class IterableQuery<T> implements Iterable<T> {
  
  private Query<T> query;
  private int max;
  private String field;
  
  public IterableQuery(Query<T> query, int max, String field) {
    this.query = query;
    this.max = max;
    this.field = field;
  }
  
  public Iterator<T> iterator() {
    return new QueryIterator<T>(query, max, field);
  }
  
}
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.