トップ 差分 一覧 ソース 置換 検索 ヘルプ PDF RSS ログイン

Java のプリミティブ型のクラス

http://javafaq.jp/S031.html

リフレクションとかで使いそうな Java のプリミティブ型のクラスを指定するには

int.class

とかで指定できる。

boolean boolean.class または Boolean.TYPE
byte byte.class または Byte.TYPE
char char.class または Character.TYPE
short short.class または Short.TYPE
int int.class または Integer.TYPE
long long.class または Long.TYPE
float float.class または Float.TYPE
[カテゴリ: プログラミング言語 > Java]

[通知用URL]



  • Hatenaブックマークに追加
  • livedoorクリップに追加
  • del.icio.usに追加
  • FC2ブックマークに追加

最終更新時間:2013年02月09日 01時48分04秒