Package ubic.gemma.core.search
Class SearchResultSet<T extends Identifiable>
- java.lang.Object
- 
- java.util.AbstractCollection<E>
- 
- java.util.AbstractSet<SearchResult<T>>
- 
- ubic.gemma.core.search.SearchResultSet<T>
 
 
 
- 
- All Implemented Interfaces:
- Iterable<SearchResult<T>>,- Collection<SearchResult<T>>,- Set<SearchResult<T>>
 
 public class SearchResultSet<T extends Identifiable> extends AbstractSet<SearchResult<T>> This is a special kind of set designed for holdingSearchResult.If a better result is added to the set, it replaces the existing one. If the original result had a non-null SearchResult#getResultObject(), it is transferred over so that it won't need to be filled later on if needed.The collection also honor the SearchSettings#getMaxResults()value, rejecting any new result unless replacing an existing one.- Author:
- poirigui
 
- 
- 
Constructor SummaryConstructors Constructor Description SearchResultSet(SearchSettings settings)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(SearchResult<T> t)Iterator<SearchResult<T>>iterator()intsize()- 
Methods inherited from class java.util.AbstractSetequals, hashCode, removeAll
 - 
Methods inherited from class java.util.AbstractCollectionaddAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream
 
- 
 
- 
- 
- 
Constructor Detail- 
SearchResultSetpublic SearchResultSet(SearchSettings settings) 
 
- 
 - 
Method Detail- 
iteratorpublic Iterator<SearchResult<T>> iterator() - Specified by:
- iteratorin interface- Collection<T extends Identifiable>
- Specified by:
- iteratorin interface- Iterable<T extends Identifiable>
- Specified by:
- iteratorin interface- Set<T extends Identifiable>
- Specified by:
- iteratorin class- AbstractCollection<SearchResult<T extends Identifiable>>
 
 - 
sizepublic int size() - Specified by:
- sizein interface- Collection<T extends Identifiable>
- Specified by:
- sizein interface- Set<T extends Identifiable>
- Specified by:
- sizein class- AbstractCollection<SearchResult<T extends Identifiable>>
 
 - 
addpublic boolean add(SearchResult<T> t) - Specified by:
- addin interface- Collection<T extends Identifiable>
- Specified by:
- addin interface- Set<T extends Identifiable>
- Overrides:
- addin class- AbstractCollection<SearchResult<T extends Identifiable>>
 
 
- 
 
-