public static enum User.Salutation extends Enum<User.Salutation>
Modifier and Type | Method and Description |
---|---|
static User.Salutation |
get(int type) |
static User.Salutation |
get(Integer type) |
static User.Salutation |
get(Long type) |
int |
getId() |
static User.Salutation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static User.Salutation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User.Salutation mr
public static final User.Salutation ms
public static final User.Salutation mrs
public static final User.Salutation dr
public static final User.Salutation prof
public static User.Salutation[] values()
for (User.Salutation c : User.Salutation.values()) System.out.println(c);
public static User.Salutation 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 static User.Salutation get(Long type)
public static User.Salutation get(Integer type)
public static User.Salutation get(int type)
Copyright © 2012–2016 Apache Software Foundation. All rights reserved.