default <T> T |
As.as(As.Type<T> type) |
Returns a role for this object of the specified type.
|
static <T> T |
AsExtensions.as(java.lang.Object datum,
As.Type<T> type) |
|
default <T> java.util.Collection<T> |
As.asMany(As.Type<T> type) |
Returns the requested role or an empty Optional .
|
static <T> java.util.Collection<T> |
AsExtensions.asMany(java.lang.Object datum,
As.Type<T> type) |
|
default <T> java.util.Optional<T> |
As.maybeAs(As.Type<T> type) |
Returns the requested role or an empty Optional .
|
static <T> java.util.Optional<T> |
AsExtensions.maybeAs(java.lang.Object datum,
As.Type<T> type) |
|