I have a enum class that has values A,B. Here is the class:
@XmlType(name = "MemberType")
@XmlEnum
public enum MemberType {
A,
B;
public String value() {
return name();
}
public static MemberType fromValue(String v) {
return valueOf(v);
}
}
I have another enum class similar to this one that has the same values A, and B. This class is generated from my WSDL, and I have no control over its code. What I basically want to do is, equate the two enum values.
Basically say MemberType.A = WSDLClass.A
, something like that. What can I try next?