woolpack.typeconvert
クラス ToCollectionDecompositionConverter
java.lang.Object
woolpack.fn.Delegator<ConvertContext,Void,RuntimeException>
woolpack.typeconvert.ToCollectionDecompositionConverter
- すべての実装されたインタフェース:
- Fn<ConvertContext,Void,RuntimeException>
public class ToCollectionDecompositionConverter
- extends Delegator<ConvertContext,Void,RuntimeException>
値がIterable
の場合はその最初の要素を変換するように委譲し、
値がIterable
以外で null でない場合はそのまま委譲する関数です。
適用しているデザインパターン:Delegation。
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToCollectionDecompositionConverter
public ToCollectionDecompositionConverter(Fn<? super ConvertContext,Void,? extends RuntimeException> fn)
- パラメータ:
fn
- 委譲先。
exec
public Void exec(ConvertContext c)
- インタフェース
Fn
の記述:
- 関数を実行します。
- 定義:
- インタフェース
Fn<ConvertContext,Void,RuntimeException>
内の exec
- オーバーライド:
- クラス
Delegator<ConvertContext,Void,RuntimeException>
内の exec
- パラメータ:
c
- コンテキスト役。
- 戻り値:
- 返却値。
Copyright (C) 2006-2007 Takahiro Nakamura. All rights reserved.