Class ResourceModel.GenericMap

    • Constructor Detail

      • GenericMap

        public GenericMap()
    • Method Detail

      • get

        public <T> T get​(@NotNull
                         @NotNull String name,
                         @NotNull
                         @NotNull Class<T> type)
        Specified by:
        get in interface org.apache.sling.api.resource.ValueMap
      • get

        @NotNull
        public <Type> Type get​(@NotNull
                               @NotNull String name,
                               @NotNull
                               Type defaultValue)
        Specified by:
        get in interface org.apache.sling.api.resource.ValueMap
      • getValue

        protected abstract <T> T getValue​(String key,
                                          @NotNull
                                          @NotNull Class<T> type)