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

com.testdroid.api.model.APIEnum Maven / Gradle / Ivy

There is a newer version: 3.34.0
Show newest version
package com.testdroid.api.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.testdroid.api.APIEntity;

/**
 * @author Damian Sniezek 
 */
public class APIEnum extends APIEntity {

    private String value;

    public APIEnum() {
    }

    public APIEnum(Enum value) {
        super((long) value.ordinal());
        this.value = value.name();
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    @JsonIgnore
    protected  void clone(T from) {
        APIEnum apiString = (APIEnum) from;
        cloneBase(from);
        this.value = apiString.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy