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