public interface As
Modifier and Type | Interface and Description |
---|---|
static class |
As.Defaults |
static interface |
As.NotFoundBehaviour<T> |
Modifier and Type | Method and Description |
---|---|
<T> T |
as(Class<T> type)
Returns an adapter to this object of the specified type.
|
<T> T |
as(Class<T> type,
As.NotFoundBehaviour<T> notFoundBehaviour)
Returns an adapter to this object of the specified type.
|
<T> Collection<T> |
asMany(Class<T> type)
Searches for multiple adapters of the given type and returns them.
|
@Nonnull <T> T as(@Nonnull Class<T> type)
AsException
- if no adapter is found@Nonnull <T> T as(@Nonnull Class<T> type, @Nonnull As.NotFoundBehaviour<T> notFoundBehaviour)
notFoundBehaviour
- the behaviour to apply when an adapter is not found@Nonnull <T> Collection<T> asMany(@Nonnull Class<T> type)
type
- the adapter typeCopyright © 2009–2015 Tidalwave s.a.s. (http://tidalwave.it). All rights reserved.