|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.fiverworks.xone.model.XoneObjectList
XoneObject用のlistクラスです。 java.util.listインターフェースを実装していません。 タイプセーフなリストで、追加したり取得できるのはXoneObjectに限られます(nullを追加することはできます)。スレッドセーフではありません。
コンストラクタの概要 | |
XoneObjectList()
XoneObjectListのインスタンスを生成します。 |
メソッドの概要 | |
void |
add(int index,
XoneObject obj)
リストの指定された位置に、オブジェクトを追加します。 |
boolean |
add(XoneObject obj)
XoneObjectを追加します。 |
boolean |
addAll(Collection collection)
指定されたコレクション内のすべてのオブジェクトをリストに加えます。 |
boolean |
addAll(int index,
Collection collection)
リストの指定された位置に、指定されたコレクション内のすべてのオブジェクトをリストに加えます。 |
boolean |
addAll(int index,
XoneObject[] xos)
リストの指定された位置に、指定された配列のすべてのオブジェクトをリストに加えます。 |
boolean |
addAll(XoneObject[] xos)
指定された配列のすべてのオブジェクトをリストに加えます。 |
void |
clear()
リスト内のすべてのオブジェクトを削除します。 |
boolean |
contains(XoneObject obj)
リストに指定されたオブジェクトが含まれているかどうかを返します。 |
boolean |
containsAll(Collection collection)
指定されたコレクションのすべてのオブジェクトがリストに含まれているかどうかを返します。 |
boolean |
containsAll(XoneObject[] xos)
指定された配列のすべてのオブジェクトがリストに含まれているかどうかを返します。 |
XoneObject |
get(int index)
指定された位置のオブジェクトを取得します。 |
int |
indexOf(XoneObject obj)
指定されたオブジェクトがリスト内で最初に検出された位置を返します。 |
boolean |
isEmpty()
リストが空かどうかを返します。 |
Iterator |
iterator()
このリストのイテレータを取得します。 |
int |
lastIndexOf(XoneObject obj)
指定されたオブジェクトがリスト内で最後に検出された位置を返します。 |
XoneObject |
remove(int index)
指定された位置のオブジェクトを削除します。 |
boolean |
remove(XoneObject obj)
最初に検出されたオブジェクトを削除します。 |
boolean |
removeAll(Collection collection)
指定されたコレクションに格納されているすべてのオブジェクトをリストから削除します。 |
boolean |
removeAll(XoneObject[] xos)
指定された配列のすべてのオブジェクトをリストから削除します。 |
boolean |
retainAll(Collection collection)
指定されたコレクションに格納されているオブジェクトだけがリスト内に含まれるようにします。 |
boolean |
retainAll(XoneObject[] xos)
指定された配列に格納されているオブジェクトだけがリスト内に含まれるようにします。 |
XoneObject |
set(int index,
XoneObject obj)
指定された位置にあるオブジェクトを指定されたオブジェクトに置き換えます。 |
int |
size()
リスト内のオブジェクト数を返します。 |
XoneObjectList |
subList(int fromIndex,
int toIndex)
このリストのfromIndex (これを含む) から toIndex (これを含まない) の範囲の部分のリストを返します。 |
XoneObject[] |
toArray()
リスト内のオブジェクトの配列を返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
public XoneObjectList()
メソッドの詳細 |
public boolean add(XoneObject obj)
obj
- 追加するオブジェクト
public void add(int index, XoneObject obj)
index
- 追加する位置obj
- 追加するオブジェクト
XoneRuntimeException
- indexが範囲外の場合public boolean addAll(Collection collection)
collection
- 追加するオブジェクトのコレクション
XoneRuntimeException
- collectionの中にXoneObject以外のオブジェクトが含まれている場合public boolean addAll(int index, Collection collection)
index
- 追加する位置collection
- 追加するオブジェクトのコレクション
XoneRuntimeException
- indexが範囲外の場合、あるいはcollectionの中にXoneObject以外のオブジェクトが含まれている場合public boolean addAll(XoneObject[] xos)
xos
- 追加するオブジェクトの配列
public boolean addAll(int index, XoneObject[] xos)
index
- 追加する位置xos
- 追加するオブジェクトの配列
XoneRuntimeException
- indexが範囲外の場合public void clear()
public boolean contains(XoneObject obj)
obj
- 調べるオブジェクト
public boolean containsAll(Collection collection)
collection
- 調べるコレクション
XoneRuntimeException
- collectionの中にXoneObject以外のオブジェクトが含まれている場合public boolean containsAll(XoneObject[] xos)
xos
- 調べる配列
public XoneObject get(int index)
index
- 取得する位置
XoneRuntimeException
- indexが範囲外の場合public int indexOf(XoneObject obj)
obj
- 検出するオブジェクト
public boolean isEmpty()
public Iterator iterator()
public int lastIndexOf(XoneObject obj)
obj
- 検出するオブジェクト
public XoneObject remove(int index)
index
- 削除する位置
XoneRuntimeException
- indexが範囲外の場合public boolean remove(XoneObject obj)
obj
- 削除するオブジェクト
public boolean removeAll(Collection collection)
collection
- 削除するオブジェクトが格納されているコレクション
XoneRuntimeException
- collectionの中にXoneObject以外のオブジェクトが含まれている場合public boolean removeAll(XoneObject[] xos)
xos
- 削除するオブジェクトが格納されている配列
public boolean retainAll(Collection collection)
collection
- 残すオブジェクトが格納されているコレクション
XoneRuntimeException
- collectionの中にXoneObject以外のオブジェクトが含まれている場合public boolean retainAll(XoneObject[] xos)
xos
- 残すオブジェクトが格納されている配列
public XoneObject set(int index, XoneObject obj)
index
- 置き換える位置obj
- 置き換えるオブジェクト
XoneRuntimeException
- indexが範囲外の場合public int size()
public XoneObjectList subList(int fromIndex, int toIndex)
fromIndex
- リストの開始する位置(これを含む)toIndex
- リストの最後の位置(これを含まない)
XoneRuntimeException
- fromIndex,toIndexの値が不正な場合public XoneObject[] toArray()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |