Woolpack API

woolpack.misc
クラス LapTimeFn<C,R>

java.lang.Object
  上位を拡張 woolpack.fn.Delegator<C,R>
      上位を拡張 woolpack.misc.LapTimeFn<C,R>
型パラメータ:
C -
R -
すべての実装されたインタフェース:
Fn<C,R>

public class LapTimeFn<C,R>
extends Delegator<C,R>

委譲先の実行時間を測定するFnです。

作成者:
nakamura

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

コンストラクタの詳細

LapTimeFn

public LapTimeFn(Fn<? super C,? extends R> fn,
                 Fn<java.lang.Long,?> reportFn)
パラメータ:
fn - 委譲先。
reportFn - 結果の送付先。
メソッドの詳細

exec

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

定義:
インタフェース Fn<C,R> 内の exec
オーバーライド:
クラス Delegator<C,R> 内の exec
パラメータ:
c - コンテキスト役。
戻り値:
返却値。

getReportFn

public Fn<java.lang.Long,?> getReportFn()

setReportFn

public void setReportFn(Fn<java.lang.Long,?> reportFn)

Woolpack API

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