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

io.sphere.sdk.types.EnumType Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.sphere.sdk.models.EnumValue;

import java.util.List;

public class EnumType extends FieldTypeBase {
    private final List values;

    @JsonCreator
    private EnumType(final List values) {
        this.values = values;
    }

    @JsonIgnore
    public static EnumType of(final List values) {
        return new EnumType(values);
    }

    public List getValues() {
        return values;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy