|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Object | +--coins.flow.FAList
Title:
Description: 1 based list that prohibits the remove operation.
Since many indexes in COINS are 1 based, it should be convenient to use a list whose base is 1. Collection of such indexed objects are often expressed in terms of BitVector, and the meaning of the bits in the vector should be maintained by such a 1-based list, which serves as a map between the bit space and the space of indexed objects. Removal of elements in such a list, which results in re-indexing of list elements, will break the map and is not desirable. This list therefore prohibits such a removal.
Copyright: Copyright (c) 2002
Company:
| コンストラクタの概要 | |
FAList()
Creates a new FAList instance. |
|
FAList(int initialCapacity)
Creates a new FAList instance with given initial capacity. |
|
| メソッドの概要 | |
boolean |
add(java.lang.Object pElement)
|
boolean |
addAll(java.util.Collection pCollection)
Inserts the specified element at the specified position in this list. |
boolean |
addAll(int pIndex,
java.util.Collection pCollection)
|
void |
clear()
Removes all of the elements from this list. |
boolean |
contains(java.lang.Object pObj)
|
boolean |
containsAll(java.util.Collection pCollection)
|
java.lang.Object |
deref(int index)
Sets the indexth entry of this list to null. |
boolean |
equals(java.lang.Object pObj)
|
java.lang.Object |
get(int pIndex)
|
int |
hashCode()
|
int |
indexOf(java.lang.Object elem)
Returns the index in this list of the first occurrence of the specified element, or -1 if this list does not contain this element. |
boolean |
isEmpty()
Tests whether this list has any elements. |
java.util.Iterator |
iterator()
Returns the iterator over this list. |
int |
lastIndexOf(java.lang.Object pObj)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int pIndex)
|
java.lang.Object |
remove(int pIndex)
|
boolean |
remove(java.lang.Object pObj)
|
boolean |
removeAll(java.util.Collection pCollection)
|
boolean |
retainAll(java.util.Collection pCollection)
|
java.lang.Object |
set(int pIndex,
java.lang.Object pElement)
|
int |
size()
Returns the number of elements in this list. |
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] pObj)
|
java.util.List |
toList()
Returns the ordinary java.util.List's view of this list. |
java.lang.String |
toString()
|
| クラス java.lang.Object から継承したメソッド |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
public FAList()
FAList instance.
public FAList(int initialCapacity)
FAList instance with given initial capacity.
| メソッドの詳細 |
public boolean add(java.lang.Object pElement)
java.util.Collection 内の addpublic boolean addAll(java.util.Collection pCollection)
java.util.Collection 内の addAlljava.lang.IndexOutOfBoundsException - if the index is not positive or is greater than the size of this list.
public boolean addAll(int pIndex,
java.util.Collection pCollection)
public void clear()
java.util.Collection 内の clearpublic boolean contains(java.lang.Object pObj)
java.util.Collection 内の containspublic boolean containsAll(java.util.Collection pCollection)
java.util.Collection 内の containsAllpublic boolean equals(java.lang.Object pObj)
java.util.Collection 内の equalsjava.lang.Object 内の equalspublic int hashCode()
java.util.Collection 内の hashCodejava.lang.Object 内の hashCodepublic java.lang.Object get(int pIndex)
public int indexOf(java.lang.Object elem)
public boolean isEmpty()
java.util.Collection 内の isEmptypublic java.util.Iterator iterator()
java.util.Collection 内の iteratorpublic int lastIndexOf(java.lang.Object pObj)
public java.util.ListIterator listIterator()
public java.util.ListIterator listIterator(int pIndex)
public java.lang.Object remove(int pIndex)
public boolean remove(java.lang.Object pObj)
java.util.Collection 内の removepublic boolean removeAll(java.util.Collection pCollection)
java.util.Collection 内の removeAllpublic boolean retainAll(java.util.Collection pCollection)
java.util.Collection 内の retainAll
public java.lang.Object set(int pIndex,
java.lang.Object pElement)
public java.lang.Object deref(int index)
index - index that is set to null.
java.lang.IndexOutOfBoundsException - if the index is not positive or is greater than the size of this list.public int size()
java.util.Collection 内の sizepublic java.lang.Object[] toArray()
java.util.Collection 内の toArraypublic java.lang.Object[] toArray(java.lang.Object[] pObj)
java.util.Collection 内の toArraypublic java.lang.String toString()
java.lang.Object 内の toStringpublic java.util.List toList()
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||