Interface QueryResultTransformer<T>
-
- Type Parameters:
T- the type of the result
public interface QueryResultTransformer<T>TheQueryResultTransformeris used by theAssociatedContentQueryobject to adapt the result set items fromResourceto whatever type is needed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<T>transform(org.apache.sling.api.resource.Resource resource)Transforms aResourceobject to a different type.
-
-
-
Method Detail
-
transform
java.util.Optional<T> transform(org.apache.sling.api.resource.Resource resource)
Transforms aResourceobject to a different type.- Parameters:
resource- the object to transform- Returns:
- an
Optionalof the requested type
-
-