public static enum User.Salutation extends Enum<User.Salutation>
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
指定した名前を持つこの型の列挙型定数を返します。
|
static User.Salutation[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
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 - 返される列挙型定数の名前。IllegalArgumentException - この列挙型に、指定した名前の定数がない場合NullPointerException - 引数がnullの場合public 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–2017 Apache Software Foundation. All rights reserved.