com.testdroid.api.model.APIEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testdroid-api Show documentation
Show all versions of testdroid-api Show documentation
The Testdroid API library for Java
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;
}
}