All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.attributes.AttributeGetterSetterImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.attributes;

import io.sphere.sdk.models.Base;

class AttributeGetterSetterImpl extends Base implements AttributeGetterSetter {

    private final String name;
    private final AttributeMapper mapper;

    AttributeGetterSetterImpl(final String name, final AttributeMapper mapper) {

        this.name = name;
        this.mapper = mapper;
    }

    public String getName() {
        return name;
    }

    public AttributeMapper getMapper() {
        return mapper;
    }

    @Override
    public Attribute valueOf(T input) {
        return Attribute.of(this, input);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy