public interface ProjectionFactory
Modifier and Type | Method and Description |
---|---|
default <T> T |
createNullableProjection(Class<T> projectionType,
Object source)
Creates a projection to the given type for the given nullable source.
|
<T> T |
createProjection(Class<T> projectionType)
Creates a projection instance for the given type.
|
<T> T |
createProjection(Class<T> projectionType,
Object source)
Creates a projection of the given type for the given source object.
|
ProjectionInformation |
getProjectionInformation(Class<?> projectionType)
Returns the
ProjectionInformation for the given projection type. |
<T> T createProjection(Class<T> projectionType, Object source)
projectionType
- the type to create, must not be null.source
- the object to create a projection for, must not be null.@Nullable default <T> T createNullableProjection(Class<T> projectionType, @Nullable Object source)
projectionType
- must not be null.source
- can be null.<T> T createProjection(Class<T> projectionType)
projectionType
- the type to create, must not be null.ProjectionInformation getProjectionInformation(Class<?> projectionType)
ProjectionInformation
for the given projection type.projectionType
- must not be null.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.