Class DependencyRetrievalResultListImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.RetrievalResultListImpl
de.uni_trier.wi2.procake.retrieval.impl.DependencyRetrievalResultListImpl
- All Implemented Interfaces:
DependencyRetrievalResultList
,RetrievalResultList
,Iterable<RetrievalResult>
public class DependencyRetrievalResultListImpl
extends RetrievalResultListImpl
implements DependencyRetrievalResultList
Implementation of
DependencyRetrievalResultList
.- Author:
- Rahol Kumar, Alexander Schultheis
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(RetrievalResult dependencyRetrievalResult) Adds a retrieval result to the list.getLast()
iterator()
void
remove
(RetrievalResult object) Removes a retrieval result from the list.void
Removes a retrieval result from the list.void
int
size()
toString()
Methods inherited from class de.uni_trier.wi2.procake.retrieval.impl.RetrievalResultListImpl
fromXML, getQuery, getRetrievalTime, getRetrievalTime, getRetrievalTimeString, getRetrievalTimeString, setQuery, setRetrievalTime, stream, toObjectPool, toXML, toXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface de.uni_trier.wi2.procake.retrieval.RetrievalResultList
fromXML, getQuery, getRetrievalTime, getRetrievalTime, getRetrievalTimeString, getRetrievalTimeString, setRetrievalTime, stream, toObjectPool, toXML, toXML
-
Constructor Details
-
DependencyRetrievalResultListImpl
public DependencyRetrievalResultListImpl()
-
-
Method Details
-
add
Description copied from interface:RetrievalResultList
Adds a retrieval result to the list.- Specified by:
add
in interfaceRetrievalResultList
- Overrides:
add
in classRetrievalResultListImpl
- Parameters:
dependencyRetrievalResult
- The retrieval result to add.
-
getLast
- Overrides:
getLast
in classRetrievalResultListImpl
-
iterator
- Specified by:
iterator
in interfaceIterable<RetrievalResult>
- Specified by:
iterator
in interfaceRetrievalResultList
- Overrides:
iterator
in classRetrievalResultListImpl
- Returns:
- an ordered iterator over all retrieval results starting with the most similar one
-
remove
Description copied from interface:RetrievalResultList
Removes a retrieval result from the list.- Specified by:
remove
in interfaceRetrievalResultList
- Overrides:
remove
in classRetrievalResultListImpl
- Parameters:
object
- The retrieval result to remove.
-
remove
Description copied from interface:RetrievalResultList
Removes a retrieval result from the list.- Specified by:
remove
in interfaceRetrievalResultList
- Overrides:
remove
in classRetrievalResultListImpl
- Parameters:
resultObjectId
- The retrieval result to remove.
-
removeLast
public void removeLast()- Overrides:
removeLast
in classRetrievalResultListImpl
-
size
public int size()- Specified by:
size
in interfaceRetrievalResultList
- Overrides:
size
in classRetrievalResultListImpl
- Returns:
- The number of retrieval results.
-
toString
- Overrides:
toString
in classRetrievalResultListImpl
-