public enum FileTypeEnum extends Enum<FileTypeEnum>
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCode() |
static FileTypeEnum |
getEnumByCode(Integer code) |
String |
getName() |
static FileTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTypeEnum JPG
public static final FileTypeEnum PNG
public static final FileTypeEnum GIF
public static final FileTypeEnum WAV
public static final FileTypeEnum MP3
public final int code
public final String name
public static FileTypeEnum[] values()
for (FileTypeEnum c : FileTypeEnum.values()) System.out.println(c);
public static FileTypeEnum 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 Integer getCode()
public String getName()
public static FileTypeEnum getEnumByCode(Integer code)
Copyright © 2018. All rights reserved.