io.sphere.sdk.attributes.AttributeGetterSetterImpl Maven / Gradle / Ivy
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