jp.carabiner.inkpod.pi.shape.persistence
クラス AbstractPersistenceArray<V>

java.lang.Object
  上位を拡張 jp.carabiner.inkpod.pi.shape.persistence.AbstractPersistenceArray<V>
すべての実装されたインタフェース:
PersistenceArray, Persistentable
直系の既知のサブクラス:
DoubleArrayPersistenceValue, FloatArrayPersistenceValue, IntArrayPersistenceValue, Point2DDoubleArrayPersistenceValue, Point2DDoubleListPersistenceValue

public abstract class AbstractPersistenceArray<V>
extends java.lang.Object
implements PersistenceArray


コンストラクタの概要
AbstractPersistenceArray(ValueReadWriter<V> readWriter)
           
 
メソッドの概要
 void addElement(Persistentable element)
          この配列に要素を追加する。
protected abstract  V createNativeArray(java.util.List<Persistentable> array)
           
protected abstract  java.util.List<Persistentable> createPersistentableArray(V value)
           
 void flush()
          このオブジェクトに対して書き込みが要求された内容のうち、 まだ反映されてないものを反映させる。
protected  java.util.List<Persistentable> getArray()
           
 Persistentable getElement(int index)
          配列の要素を読み出す。
 java.util.List<Persistentable> getElements()
          配列の要素をすべて読み出す。
 boolean isArray()
          このオブジェクトが配列であるかを返す。
 boolean isEmpty()
          内容が空であるか調べる。
 boolean isObject()
          このオブジェクトがプロパティを持つオブジェクトであるかを返す。
 boolean isOmitted()
           
 int size()
          この配列の長さを返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.carabiner.inkpod.pi.shape.persistence.PersistenceArray から継承されたメソッド
newElement
 

コンストラクタの詳細

AbstractPersistenceArray

public AbstractPersistenceArray(ValueReadWriter<V> readWriter)
メソッドの詳細

getArray

protected java.util.List<Persistentable> getArray()

createPersistentableArray

protected abstract java.util.List<Persistentable> createPersistentableArray(V value)

createNativeArray

protected abstract V createNativeArray(java.util.List<Persistentable> array)

addElement

public void addElement(Persistentable element)
インタフェース PersistenceArray の記述:
この配列に要素を追加する。

定義:
インタフェース PersistenceArray 内の addElement
パラメータ:
element - 追加する要素

getElement

public Persistentable getElement(int index)
インタフェース PersistenceArray の記述:
配列の要素を読み出す。

定義:
インタフェース PersistenceArray 内の getElement
パラメータ:
index - 配列のインデックス
戻り値:
読み出された要素

getElements

public java.util.List<Persistentable> getElements()
インタフェース PersistenceArray の記述:
配列の要素をすべて読み出す。

定義:
インタフェース PersistenceArray 内の getElements
戻り値:
配列の要素を含むList

size

public int size()
インタフェース PersistenceArray の記述:
この配列の長さを返す。

定義:
インタフェース PersistenceArray 内の size
戻り値:
配列の長さ

isEmpty

public boolean isEmpty()
インタフェース Persistentable の記述:
内容が空であるか調べる。

定義:
インタフェース Persistentable 内の isEmpty
戻り値:
空である場合はtrue

flush

public void flush()
インタフェース Persistentable の記述:
このオブジェクトに対して書き込みが要求された内容のうち、 まだ反映されてないものを反映させる。

定義:
インタフェース Persistentable 内の flush

isArray

public boolean isArray()
インタフェース Persistentable の記述:
このオブジェクトが配列であるかを返す。

定義:
インタフェース Persistentable 内の isArray
戻り値:
配列ならtrue

isObject

public boolean isObject()
インタフェース Persistentable の記述:
このオブジェクトがプロパティを持つオブジェクトであるかを返す。

定義:
インタフェース Persistentable 内の isObject
戻り値:
プロパティを持つオブジェクトならtrue

isOmitted

public boolean isOmitted()