org.siebengeisslein.indexedlist
Class QueryResult<EntryType>

java.lang.Object
  extended by org.siebengeisslein.indexedlist.QueryResult<EntryType>
All Implemented Interfaces:
java.lang.Iterable

public class QueryResult<EntryType>
extends java.lang.Object
implements java.lang.Iterable


Constructor Summary
QueryResult()
           
QueryResult(java.util.List<Ref> entries)
           
QueryResult(Ref entry)
           
 
Method Summary
 java.util.HashSet<Ref> asHashSet()
           
 java.util.List asList()
           
 EntryType getEntry(int index)
           
 Ref getRef(int index)
           
 java.util.Collection<Ref> getRefs()
           
 java.util.Iterator<EntryType> iterator()
           
 int size()
           
 void sort(java.util.Comparator<EntryType> comparator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResult

public QueryResult(java.util.List<Ref> entries)

QueryResult

public QueryResult(Ref entry)

QueryResult

public QueryResult()
Method Detail

size

public int size()

getEntry

public EntryType getEntry(int index)

getRef

public Ref getRef(int index)

sort

public void sort(java.util.Comparator<EntryType> comparator)

iterator

public java.util.Iterator<EntryType> iterator()
Specified by:
iterator in interface java.lang.Iterable

getRefs

public java.util.Collection<Ref> getRefs()

asHashSet

public java.util.HashSet<Ref> asHashSet()

asList

public java.util.List asList()