Package org.ametys.cms.search.cocoon
Class ContentSearchResults.SearchResultWrapper
- java.lang.Object
-
- org.ametys.cms.search.cocoon.ContentSearchResults.SearchResultWrapper
-
- All Implemented Interfaces:
SearchResult<A>
- Enclosing class:
- ContentSearchResults<A extends AmetysObject>
class ContentSearchResults.SearchResultWrapper extends Object implements SearchResult<A>
-
-
Constructor Summary
Constructors Constructor Description SearchResultWrapper(A object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getObject()
Get the result object.float
getScore()
Get the result score.
-
-
-
Field Detail
-
_object
private A extends AmetysObject _object
-
-
Constructor Detail
-
SearchResultWrapper
SearchResultWrapper(A object)
-
-
Method Detail
-
getObject
public A getObject()
Description copied from interface:SearchResult
Get the result object.- Specified by:
getObject
in interfaceSearchResult<A extends AmetysObject>
- Returns:
- The result object.
-
getScore
public float getScore()
Description copied from interface:SearchResult
Get the result score.- Specified by:
getScore
in interfaceSearchResult<A extends AmetysObject>
- Returns:
- The result score.
-
-