@ProviderType public final class AdaptTo extends Object
Adaptable.| Modifier and Type | Method and Description |
|---|---|
static <T> T |
notNull(@NotNull org.apache.sling.api.adapter.Adaptable adaptable,
@NotNull Class<T> type)
Try to adapt the adaptable to the given type and ensures that it succeeds.
|
@NotNull
public static <T> T notNull(@NotNull
@NotNull org.apache.sling.api.adapter.Adaptable adaptable,
@NotNull
@NotNull Class<T> type)
T - Typeadaptable - Adaptabletype - TypeUnableToAdaptException - if the adaption was not successfulCopyright © 2014–2019 wcm.io. All rights reserved.