Class DependencyRetrievalResultImpl
java.lang.Object
de.uni_trier.wi2.procake.retrieval.impl.RetrievalResultImpl
de.uni_trier.wi2.procake.retrieval.impl.DependencyRetrievalResultImpl
- All Implemented Interfaces:
DependencyRetrievalResult
,RetrievalResult
,Comparable<RetrievalResult>
public class DependencyRetrievalResultImpl
extends RetrievalResultImpl
implements DependencyRetrievalResult
Implementation of
DependencyRetrievalResult
.- Author:
- Rahol Kumar, Alexander Schultheis
-
Constructor Summary
ConstructorDescriptionDependencyRetrievalResultImpl
(DependencySimilarity dependencySimilarity, List<DataObject> resultObjects) -
Method Summary
Modifier and TypeMethodDescriptionMethod, that returns the result objects.void
setResultId
(String resultId) void
setResultObject
(DataObject resultObject) void
setResultObjects
(List<DataObject> resultObjects) Method, that sets the result objects.toString()
Methods inherited from class de.uni_trier.wi2.procake.retrieval.impl.RetrievalResultImpl
compareTo, getRetrievalTime, getSimilarity, setRetrievalTime, setSimilarity
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.uni_trier.wi2.procake.retrieval.RetrievalResult
getRetrievalTime, getSimilarity
-
Constructor Details
-
DependencyRetrievalResultImpl
public DependencyRetrievalResultImpl(DependencySimilarity dependencySimilarity, List<DataObject> resultObjects)
-
-
Method Details
-
setResultObjects
Description copied from interface:DependencyRetrievalResult
Method, that sets the result objects.- Specified by:
setResultObjects
in interfaceDependencyRetrievalResult
- Parameters:
resultObjects
- The result objects to be set as a list.
-
getResultObjects
Description copied from interface:DependencyRetrievalResult
Method, that returns the result objects.- Specified by:
getResultObjects
in interfaceDependencyRetrievalResult
- Returns:
- The result objects as list.
-
getObject
Description copied from interface:RetrievalResult
- Specified by:
getObject
in interfaceRetrievalResult
- Overrides:
getObject
in classRetrievalResultImpl
- Returns:
- the retrieval result object if
Query.setRetrieveCases(boolean)
wastrue
-
getObjectId
- Specified by:
getObjectId
in interfaceRetrievalResult
- Overrides:
getObjectId
in classRetrievalResultImpl
- Returns:
- The object id of the retrieval result.
-
setResultId
- Overrides:
setResultId
in classRetrievalResultImpl
-
setResultObject
- Overrides:
setResultObject
in classRetrievalResultImpl
-
toString
- Overrides:
toString
in classRetrievalResultImpl
-