public AdapterType getAdapter()

in src/main/java/org/apache/sling/resource/collection/impl/ResourceCollectionAdapterFactory.java [60:69]


    public <AdapterType> AdapterType getAdapter(Object adaptable, Class<AdapterType> type) {
        if (adaptable instanceof Resource) {
            return getAdapter((Resource) adaptable, type);
        } else if (adaptable instanceof ResourceResolver) {
            return getAdapter((ResourceResolver) adaptable, type);
        } else {
            log.warn("Unable to handle adaptable {}", adaptable.getClass().getName());
            return null;
        }
    }