public static enum CreateTransactionViewModel.SupportedFileTypes extends Enum<CreateTransactionViewModel.SupportedFileTypes>
Modifier and Type | Method and Description |
---|---|
static boolean |
isAllowed(String fileName) |
static CreateTransactionViewModel.SupportedFileTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateTransactionViewModel.SupportedFileTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateTransactionViewModel.SupportedFileTypes PDF
public static final CreateTransactionViewModel.SupportedFileTypes PNG
public static final CreateTransactionViewModel.SupportedFileTypes JPG
public static final CreateTransactionViewModel.SupportedFileTypes JPEG
public static CreateTransactionViewModel.SupportedFileTypes[] values()
for (CreateTransactionViewModel.SupportedFileTypes c : CreateTransactionViewModel.SupportedFileTypes.values()) System.out.println(c);
public static CreateTransactionViewModel.SupportedFileTypes 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 static boolean isAllowed(String fileName)