public static AttachmentType fromValue(String v) { for (AttachmentType c: AttachmentType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }
public static AttachmentType fromValue(String v) { for (AttachmentType c: AttachmentType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); }