public enum Salutation extends Enum<Salutation>
| Modifier and Type | Method and Description |
|---|---|
String |
getKey() |
static Salutation |
getSalutation(String key) |
static Salutation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Salutation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Salutation UNKNOWN
public static final Salutation MR
public static final Salutation MRS
public static Salutation[] values()
for (Salutation c : Salutation.values()) System.out.println(c);
public static 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 String getKey()
public static Salutation getSalutation(String key)
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.