public enum AttachmentType extends Enum<AttachmentType>
attachments_supported.| Enum Constant and Description |
|---|
EMBEDDED
"embedded" (1). |
EXTERNAL
"external" (2). |
| Modifier and Type | Method and Description |
|---|---|
static AttachmentType |
getByValue(short value)
Find an instance of this enum by a value.
|
short |
getValue()
Get the integer representation of this enum instance.
|
static AttachmentType |
parse(String type)
Convert
String to AttachmentType. |
static AttachmentType[] |
toArray(int bits) |
static int |
toBits(EnumSet<AttachmentType> set) |
static EnumSet<AttachmentType> |
toSet(AttachmentType[] array) |
static EnumSet<AttachmentType> |
toSet(int bits) |
String |
toString() |
static AttachmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttachmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttachmentType EMBEDDED
"embedded" (1).public static final AttachmentType EXTERNAL
"external" (2).public static AttachmentType[] values()
for (AttachmentType c : AttachmentType.values()) System.out.println(c);
public static AttachmentType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic short getValue()
public String toString()
toString in class Enum<AttachmentType>public static AttachmentType getByValue(short value)
value - The integer representation of the instance to find.null if not found.public static AttachmentType parse(String type)
String to AttachmentType.type - An attachment type. For example, "embedded".AttachmentType instance, or null.public static int toBits(EnumSet<AttachmentType> set)
public static AttachmentType[] toArray(int bits)
public static EnumSet<AttachmentType> toSet(int bits)
public static EnumSet<AttachmentType> toSet(AttachmentType[] array)
Copyright © 2022. All rights reserved.