com.citrix.sharefile.api.enumerations.SFSafeEnum Maven / Gradle / Ivy
package com.citrix.sharefile.api.enumerations;
import com.google.gson.annotations.SerializedName;
public class SFSafeEnum
{
private T mEnum;
@SerializedName("value")
private String originalString;
public void setValue(String v, T e)
{
originalString = v;
mEnum = e;
}
public SFSafeEnum(T e)
{
setValue(e.toString(), e);
}
public SFSafeEnum()
{
}
public String getOriginalString()
{
return originalString;
}
public T get()
{
return mEnum;
}
@Override
public String toString()
{
return originalString;
}
public boolean equals(T target)
{
return mEnum == target;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy