com.infoteria.asteria.value
Class VariableList

java.lang.Object
  |
  +--com.infoteria.asteria.value.VariableList
All Implemented Interfaces:
java.lang.Cloneable, com.infoteria.asteria.value.Mapable, java.io.Serializable, com.infoteria.asteria.value.ValueProvider

public class VariableList
extends java.lang.Object
implements com.infoteria.asteria.value.Mapable, java.lang.Cloneable, java.io.Serializable

Valueクラスのリストです。

See Also:
Serialized Form

Constructor Summary
VariableList()
          VariableListクラスを作成します。
VariableList(int capacity)
          内部のMapのcapacityを指定してVariableListクラスを作成します。
 
Method Summary
 void clear()
          nameと値のセットをすべてクリアします。
 java.lang.Object clone()
          cloneメソッドの実装。
 java.lang.String getName(int idx)
          idxに対応するnameを取得します。
対応するnameがない場合はnullを返します。
 Value getValue(int idx)
          idxに対応する値を取得します。
対応する値がない場合はnullを返します。
 Value getValue(java.lang.String name)
          nameに対応する値を取得します。
対応する値がない場合はnullを返します。
 java.util.Set keySet()
          nameのSetを返します。
返されるSetに対する変更は無効です。
 Value putValue(java.lang.String name, Value value)
          値を設定します。
nameに対応する値が既にある場合はそれは置き換えられます。
 int size()
          nameと値のセットの数を返します。
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableList

public VariableList()
VariableListクラスを作成します。

VariableList

public VariableList(int capacity)
内部のMapのcapacityを指定してVariableListクラスを作成します。
Method Detail

putValue

public Value putValue(java.lang.String name,
                      Value value)
値を設定します。
nameに対応する値が既にある場合はそれは置き換えられます。
Parameters:
name - 変数名
value - 値
Returns:
nameに対応する値が存在した場合はその値

getValue

public Value getValue(java.lang.String name)
nameに対応する値を取得します。
対応する値がない場合はnullを返します。
Specified by:
getValue in interface com.infoteria.asteria.value.ValueProvider

getName

public java.lang.String getName(int idx)
idxに対応するnameを取得します。
対応するnameがない場合はnullを返します。

getValue

public Value getValue(int idx)
idxに対応する値を取得します。
対応する値がない場合はnullを返します。

size

public int size()
nameと値のセットの数を返します。
Specified by:
size in interface com.infoteria.asteria.value.Mapable

keySet

public java.util.Set keySet()
nameのSetを返します。
返されるSetに対する変更は無効です。
Specified by:
keySet in interface com.infoteria.asteria.value.Mapable

clone

public java.lang.Object clone()
cloneメソッドの実装。
Overrides:
clone in class java.lang.Object

clear

public void clear()
nameと値のセットをすべてクリアします。