Woolpack API

woolpack.html
クラス PropertyCounter

java.lang.Object
  上位を拡張 woolpack.html.PropertyCounter

public class PropertyCounter
extends java.lang.Object

プロパティの出現回数をカウントするカウンタです。
適用しているデザインパターン:変数を格納する構造体。

作成者:
nakamura

コンストラクタの概要
PropertyCounter()
           
 
メソッドの概要
 int getCount()
          一時プロパティの出現回数を返します。
 int getCount(java.lang.String targetValue)
          プロパティの出現回数を返します。
 java.lang.String getName()
          一時プロパティ名を返します。
 java.lang.String getValue()
          一時プロパティ値を返します。
 int put(java.lang.String currentName, java.lang.String currentValue)
          プロパティの出現回数をひとつ増やして返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PropertyCounter

public PropertyCounter()
メソッドの詳細

put

public int put(java.lang.String currentName,
               java.lang.String currentValue)
プロパティの出現回数をひとつ増やして返します。

パラメータ:
currentName - プロパティ名。
currentValue - プロパティ値。
戻り値:
プロパティの出現回数をひとつ増やした値。

getCount

public int getCount(java.lang.String targetValue)
プロパティの出現回数を返します。

パラメータ:
targetValue - プロパティ名。
戻り値:
プロパティの出現回数。

getCount

public int getCount()
一時プロパティの出現回数を返します。

戻り値:
一時プロパティの出現回数。

getName

public java.lang.String getName()
一時プロパティ名を返します。

戻り値:
一時プロパティ名。

getValue

public java.lang.String getValue()
一時プロパティ値を返します。

戻り値:
一時プロパティ値。

Woolpack API

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