woolpack.typeconvert
クラス Converter

java.lang.Object
  上位を拡張 woolpack.typeconvert.Converter
すべての実装されたインタフェース:
Fn<ConvertContext,Void,RuntimeException>

public class Converter
extends Object
implements Fn<ConvertContext,Void,RuntimeException>

ConvertContext.getValue()を委譲先で変換した結果を ConvertContext.setValue(Object)に設定する関数です。
適用しているデザインパターン:参照透過と副作用のAdapter。


コンストラクタの概要
Converter(Fn<Object,?,? extends RuntimeException> fn)
           
 
メソッドの概要
 Void exec(ConvertContext c)
          関数を実行します。
 Fn<Object,?,? extends RuntimeException> getFn()
           
 void setFn(Fn<Object,?,? extends RuntimeException> fn)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Converter

public Converter(Fn<Object,?,? extends RuntimeException> fn)
パラメータ:
fn - 委譲先。
メソッドの詳細

exec

public Void exec(ConvertContext c)
インタフェース Fn の記述:
関数を実行します。

定義:
インタフェース Fn<ConvertContext,Void,RuntimeException> 内の exec
パラメータ:
c - コンテキスト役。
戻り値:
返却値。

getFn

public Fn<Object,?,? extends RuntimeException> getFn()

setFn

public void setFn(Fn<Object,?,? extends RuntimeException> fn)


Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.