Woolpack API

woolpack.convert
クラス ParseConverter

java.lang.Object
  上位を拡張 woolpack.convert.ParseConverter
すべての実装されたインタフェース:
Fn<java.lang.String,java.lang.Object,java.lang.Exception>

public class ParseConverter
extends java.lang.Object
implements Fn<java.lang.String,java.lang.Object,java.lang.Exception>

Format.parseObject(String)で変換するFnです。 「NumberFormat の構文解析問題の解決」 (http://www-06.ibm.com/jp/developerworks/java/library/j-numberformat/index.shtml) のテクニックを使用してデータの欠損を検出しています。

作成者:
nakamura

コンストラクタの概要
ParseConverter(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)
           
 
メソッドの概要
 java.lang.Object exec(java.lang.String c)
          関数を実行します。
 Fn<?,? extends java.text.Format,? extends java.lang.Exception> getFormatFactory()
           
 void setFormatFactory(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ParseConverter

public ParseConverter(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)
メソッドの詳細

exec

public java.lang.Object exec(java.lang.String c)
                      throws java.lang.Exception
インタフェース Fn の記述:
関数を実行します。

定義:
インタフェース Fn<java.lang.String,java.lang.Object,java.lang.Exception> 内の exec
パラメータ:
c - コンテキスト役。
戻り値:
返却値。
例外:
java.text.ParseException - パースに失敗した場合。
java.lang.Exception - 委譲先で例外が発生した場合。

getFormatFactory

public Fn<?,? extends java.text.Format,? extends java.lang.Exception> getFormatFactory()

setFormatFactory

public void setFormatFactory(Fn<?,? extends java.text.Format,? extends java.lang.Exception> formatFactory)

Woolpack API

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