@Beta
public interface Projectable
| Modifier and Type | Method and Description |
|---|---|
<B extends Behaviour> |
as(Class<B> projectionClass)
Returns the specified projection of this entity if such projection
is supported.
|
<B extends Behaviour> |
is(Class<B> projectionClass)
Returns true if this entity is capable of being projected as the
specified class.
|
default <B extends Behaviour> |
project(Class<B> projectionClass)
Returns the specified projection of this entity if such projection
is supported.
|
<B extends Behaviour> B as(Class<B> projectionClass)
B - type of behaviourprojectionClass - requested projection classIllegalStateException - if a driver cannot be foundIllegalArgumentException - if the projection is not supported<B extends Behaviour> boolean is(Class<B> projectionClass)
B - type of behaviourprojectionClass - requested projection class