public enum PhotoType extends Enum<PhotoType>
| Enum Constant and Description |
|---|
BOOK |
PHOTO_ITEM |
PORTFOLIO |
| Modifier and Type | Method and Description |
|---|---|
static PhotoType |
from(int id) |
static PhotoType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhotoType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhotoType PORTFOLIO
public static final PhotoType PHOTO_ITEM
public static final PhotoType BOOK
public static PhotoType[] values()
for (PhotoType c : PhotoType.values()) System.out.println(c);
public static PhotoType 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 PhotoType from(int id)
Copyright © 2018–2022 NukkitX. All rights reserved.