public enum TargetEnum extends Enum<TargetEnum>
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the id of the target
|
static TargetEnum |
getTarget(int nId)
Get the target given an id
|
String |
toString()
Get the String value of the target
|
static TargetEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TargetEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TargetEnum SELF
public static final TargetEnum BLANK
public static final TargetEnum PARENT
public static final TargetEnum TOP
public static TargetEnum[] values()
for (TargetEnum c : TargetEnum.values()) System.out.println(c);
public static TargetEnum 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 getId()
public String toString()
toString
in class Enum<TargetEnum>
public static TargetEnum getTarget(int nId)
nId
- the idCopyright © 2019 City of Paris. All rights reserved.