|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectwoolpack.typeconvert.TypeConvertUtils
public final class TypeConvertUtils
型変換のユーティリティです。 型推論で表記を簡略するためのスタティックメソッドと変数を含みます。
フィールドの概要 | |
---|---|
static Fn<ConvertContext,Void,RuntimeException> |
COLLECTION_CONVERTER
デフォルトの一覧型変換の関数です。 |
static Fn<ConvertContext,Void,RuntimeException> |
DATE_FORMATTER
デフォルトの日付フォーマッタです。 |
static Fn<ConvertContext,Void,RuntimeException> |
DATE_PARSER
デフォルトの日付パーサです。 |
static Fn<ConvertContext,Class,RuntimeException> |
GET_FROM_TYPE
ConvertContext.getValue() のObject.getClass() を返す関数です。 |
static Fn<ConvertContext,String,RuntimeException> |
GET_PROPERTY_NAME
ConvertContext.getPropertyName() を返す関数です。 |
static Fn<ConvertContext,Class,RuntimeException> |
GET_TO_TYPE
ConvertContext.getToType() を返す関数です。 |
static Fn<ConvertContext,Void,RuntimeException> |
NUMBER_FORMATTER
デフォルトの数値フォーマッタです。 |
static Fn<ConvertContext,Void,RuntimeException> |
NUMBER_PARSER
デフォルトの数値パーサです。 |
static Fn<ConvertContext,Void,RuntimeException> |
SIMPLE_CONVERTER
デフォルト単純型変換の関数です。 |
メソッドの概要 | |
---|---|
static Fn<ConvertContext,Void,RuntimeException> |
getCollectionConverter(Fn<ConvertContext,Void,RuntimeException> dateFormatter,
Fn<ConvertContext,Void,RuntimeException> dateParser,
Fn<ConvertContext,Void,RuntimeException> numberFormatter,
Fn<ConvertContext,Void,RuntimeException> numberParser,
Fn<Object,Boolean,RuntimeException> booleanConverter)
一覧型変換の関数を生成します。 |
static Fn<ConvertContext,Void,RuntimeException> |
getSimpleConverter(Fn<ConvertContext,Void,RuntimeException> dateFormatter,
Fn<ConvertContext,Void,RuntimeException> dateParser,
Fn<ConvertContext,Void,RuntimeException> numberFormatter,
Fn<ConvertContext,Void,RuntimeException> numberParser,
Fn<Object,Boolean,RuntimeException> booleanConverter,
Fn<ConvertContext,Void,RuntimeException> successorFn)
単純型変換の関数を生成します。 |
static Fn<Object,BeanMap,RuntimeException> |
toMap()
BeanをMapに変換する関数を生成します。 |
static Fn<Object,BeanMap,RuntimeException> |
toMap(Fn<ConvertContext,Void,RuntimeException> fn)
BeanをMapに変換する関数を生成します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final Fn<ConvertContext,Class,RuntimeException> GET_TO_TYPE
ConvertContext.getToType()
を返す関数です。
public static final Fn<ConvertContext,Class,RuntimeException> GET_FROM_TYPE
ConvertContext.getValue()
のObject.getClass()
を返す関数です。
public static final Fn<ConvertContext,String,RuntimeException> GET_PROPERTY_NAME
ConvertContext.getPropertyName()
を返す関数です。
public static final Fn<ConvertContext,Void,RuntimeException> DATE_FORMATTER
Fn
のCompositeを生成するBuilder。
public static final Fn<ConvertContext,Void,RuntimeException> DATE_PARSER
Fn
のCompositeを生成するBuilder。
public static final Fn<ConvertContext,Void,RuntimeException> NUMBER_FORMATTER
DecimalFormat
を引数なしコンストラクタで使用します。
public static final Fn<ConvertContext,Void,RuntimeException> NUMBER_PARSER
DecimalFormat
を引数なしコンストラクタで使用します。
public static final Fn<ConvertContext,Void,RuntimeException> SIMPLE_CONVERTER
public static final Fn<ConvertContext,Void,RuntimeException> COLLECTION_CONVERTER
メソッドの詳細 |
---|
public static Fn<ConvertContext,Void,RuntimeException> getSimpleConverter(Fn<ConvertContext,Void,RuntimeException> dateFormatter, Fn<ConvertContext,Void,RuntimeException> dateParser, Fn<ConvertContext,Void,RuntimeException> numberFormatter, Fn<ConvertContext,Void,RuntimeException> numberParser, Fn<Object,Boolean,RuntimeException> booleanConverter, Fn<ConvertContext,Void,RuntimeException> successorFn)
Fn
のCompositeを生成するBuilder。
dateFormatter
- 日付フォーマッタ。dateParser
- 日付パーサ。numberFormatter
- 数値フォーマッタ。numberParser
- 数値パーサ。booleanConverter
- 真偽値へのコンバータ。successorFn
- この変換器で変換できない場合の委譲先。
public static Fn<ConvertContext,Void,RuntimeException> getCollectionConverter(Fn<ConvertContext,Void,RuntimeException> dateFormatter, Fn<ConvertContext,Void,RuntimeException> dateParser, Fn<ConvertContext,Void,RuntimeException> numberFormatter, Fn<ConvertContext,Void,RuntimeException> numberParser, Fn<Object,Boolean,RuntimeException> booleanConverter)
Fn
のCompositeを生成するBuilder。
dateFormatter
- 日付フォーマッタ。dateParser
- 日付パーサ。numberFormatter
- 数値フォーマッタ。numberParser
- 数値パーサ。booleanConverter
- 真偽値へのコンバータ。
public static Fn<Object,BeanMap,RuntimeException> toMap()
public static Fn<Object,BeanMap,RuntimeException> toMap(Fn<ConvertContext,Void,RuntimeException> fn)
fn
- 型を変換する関数。
|
|||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |