Class MapAccessor<T>

java.lang.Object
com.commercetools.api.models.MapAccessor<T>
Type Parameters:
T - the type of the map value
Direct Known Subclasses:
AttributesAccessor, CustomFieldsAccessor

public class MapAccessor<T> extends Object
accessor interface for map objects like attributes or custom fields
  • Constructor Details

    • MapAccessor

      public MapAccessor(Map<String,T> map)
  • Method Details

    • get

      @Nullable public <U> U get(String key, Function<T,U> mapFn)
    • get

      @Nullable public T get(String key)