public enum OwnerType extends Enum<OwnerType> implements Serializable
| Enum Constant and Description |
|---|
OTHER |
PROFILE_ID |
USER_ID |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Return the default description of the enumeration.
|
String |
getName()
Return the default name of the enumeration.
|
int |
getOrdinal()
Return the numeric representation of the enumeration.
|
String |
toString()
toString() JSON-style
|
static OwnerType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OwnerType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OwnerType USER_ID
public static final OwnerType PROFILE_ID
public static final OwnerType OTHER
public static OwnerType[] values()
for (OwnerType c : OwnerType.values()) System.out.println(c);
public static OwnerType 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 int getOrdinal()
public String getName()
public String getDescription()
Copyright © 2018–2020 ODPi. All rights reserved.