org.seasar.framework.util
クラス IntegerConversionUtil

java.lang.Object
  拡張org.seasar.framework.util.IntegerConversionUtil

public class IntegerConversionUtil
extends Object

Integer用の変換ユーティリティです。

作成者:
higa

コンストラクタの概要
protected IntegerConversionUtil()
          インスタンスを構築します。
 
メソッドの概要
static Integer toInteger(Object o)
          Integerに変換します。
static Integer toInteger(Object o, String pattern)
          Integerに変換します。
static int toPrimitiveInt(Object o)
          intに変換します。
static int toPrimitiveInt(Object o, String pattern)
          intに変換します。
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

IntegerConversionUtil

protected IntegerConversionUtil()
インスタンスを構築します。

メソッドの詳細

toInteger

public static Integer toInteger(Object o)
Integerに変換します。

パラメータ:
o -
戻り値:
Integer

toInteger

public static Integer toInteger(Object o,
                                String pattern)
Integerに変換します。

パラメータ:
o -
pattern -
戻り値:
Integer

toPrimitiveInt

public static int toPrimitiveInt(Object o)
intに変換します。

パラメータ:
o -
戻り値:
int

toPrimitiveInt

public static int toPrimitiveInt(Object o,
                                 String pattern)
intに変換します。

パラメータ:
o -
pattern -
戻り値:
int


Copyright © 2004-2012 The Seasar Foundation. All Rights Reserved.