org.overlord.sramp.client.query
Class QueryResultSet

java.lang.Object
  extended by org.overlord.sramp.client.query.QueryResultSet
All Implemented Interfaces:
Iterable<ArtifactSummary>

public class QueryResultSet
extends Object
implements Iterable<ArtifactSummary>

An instance of this class is returned by the Atom API client when consumers call the query methods.

Author:
eric.wittmann@redhat.com

Constructor Summary
QueryResultSet(org.jboss.resteasy.plugins.providers.atom.Feed feed)
          Constructor.
 
Method Summary
 ArtifactSummary get(int index)
          Gets an item at the given index.
 Iterator<ArtifactSummary> iterator()
           
 long size()
          Returns the number of artifacts that matched the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultSet

public QueryResultSet(org.jboss.resteasy.plugins.providers.atom.Feed feed)
Constructor.

Parameters:
feed -
Method Detail

size

public long size()
Returns the number of artifacts that matched the query.


get

public ArtifactSummary get(int index)
Gets an item at the given index.

Parameters:
index -

iterator

public Iterator<ArtifactSummary> iterator()
Specified by:
iterator in interface Iterable<ArtifactSummary>
See Also:
Iterable.iterator()


Copyright © 2011-2013 JBoss, a division of Red Hat. All Rights Reserved.