Class VariableList

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

public class VariableList extends Object implements com.infoteria.asteria.value.Mapable, Cloneable, Serializable
Valueクラスのリストです。
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    VariableListクラスを作成します。
    VariableList(int capacity)
    内部のMapのcapacityを指定してVariableListクラスを作成します。
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    nameと値のセットをすべてクリアします。
    cloneメソッドの実装。
    getName(int idx)
    idxに対応するnameを取得します。
    対応するnameがない場合はnullを返します。
    getValue(int idx)
    idxに対応する値を取得します。
    対応する値がない場合はnullを返します。
    nameに対応する値を取得します。
    対応する値がない場合はnullを返します。
    nameのSetを返します。
    返されるSetに対する変更は無効です。
    putValue(String name, Value value)
    値を設定します。
    nameに対応する値が既にある場合はそれは置き換えられます。
    int
    nameと値のセットの数を返します。

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VariableList

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

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

    • putValue

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

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

      public 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 Set<String> keySet()
      nameのSetを返します。
      返されるSetに対する変更は無効です。
      Specified by:
      keySet in interface com.infoteria.asteria.value.Mapable
    • clone

      public Object clone()
      cloneメソッドの実装。
      Overrides:
      clone in class Object
    • clear

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