|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--coins.backend.util.BiLink | +--coins.backend.util.BiList
Bi-directional list (head part)
入れ子クラスの概要 | |
(パッケージプライベート) class |
BiList.BiListIterator
Iterator for scanning a BiList. |
フィールドの概要 |
クラス coins.backend.util.BiLink から継承したフィールド |
elem, next, prev |
コンストラクタの概要 | |
BiList()
Create empty list. |
メソッドの概要 | |
BiLink |
add(java.lang.Object obj)
Append an element to the end of the list. |
BiLink |
addAll(BiList list)
Append all element in the list to the end. |
BiLink |
addAllFirst(BiList list)
Add an element before first element of the list. |
BiLink |
addFirst(java.lang.Object obj)
Add an element before first element of the list. |
BiList |
addNew(java.lang.Object obj)
Add an object to the list only if not there. |
BiLink |
append(BiLink link)
Append a link to the end of the list. |
boolean |
atEnd()
Return true if this link is either end. |
void |
clear()
Clear the list. |
java.lang.Object |
clone()
Return copy of the list. |
BiList |
concatenate(BiList aList)
Concatenate two lists. |
boolean |
contains(java.lang.Object obj)
Test if the list contains an object obj. |
BiList |
copy()
Make a copy of the list and return it. |
java.lang.Object |
elem()
Return contents of this link. |
boolean |
equals(java.lang.Object x)
Compare two lists |
BiLink |
first()
Return first link. |
boolean |
isEmpty()
Return true if this list is empty. |
java.util.Iterator |
iterator()
Return iterator for the list. |
BiLink |
last()
Return last link. |
int |
length()
Return length of the list |
BiLink |
locate(java.lang.Object obj)
Find a link which has an object obj. |
BiLink |
locateEqual(java.lang.Object obj)
Find a link which has an object which equals to obj. |
static void |
main(java.lang.String[] args)
|
BiLink |
next()
Return next link. |
BiLink |
prepend(BiLink link)
Prepend a link before first element of the list. |
BiLink |
prev()
Return previous link. |
BiLink |
remove(java.lang.Object obj)
Remove an link which has an object obj. |
BiLink |
removeEqual(java.lang.Object obj)
Remove an link which has an object which equals to obj. |
void |
sanityTest()
Check list consistency. |
void |
sort()
Sort list. |
void |
sort(java.util.Comparator cmp)
Sort list according to Comparator. |
BiList |
split(BiLink middle)
Split the list into two parts. |
java.lang.Object |
takeFirst()
Return first element and remove it |
java.lang.Object |
takeLast()
Return last element and remove it |
java.lang.Object[] |
toArray()
Convert to array. |
java.lang.String |
toString()
Visualize |
BiLink |
unlink()
Remove this link from the list. |
int |
whereIs(java.lang.Object obj)
Return the position of first occurence of an object obj. |
クラス coins.backend.util.BiLink から継承したメソッド |
addAfter, addAllAfter, addAllBefore, addBefore, insertAfter, insertAllAfter, insertAllBefore, insertBefore, setElem |
クラス java.lang.Object から継承したメソッド |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public BiList()
メソッドの詳細 |
public java.lang.Object elem()
BiLink
の記述:
BiLink
内の elem
public BiLink unlink()
BiLink
の記述:
BiLink
内の unlink
public BiLink next()
BiLink
の記述:
BiLink
内の next
public BiLink prev()
BiLink
の記述:
BiLink
内の prev
public BiLink first()
public BiLink last()
public boolean atEnd()
BiLink
内の atEnd
public boolean isEmpty()
public BiLink add(java.lang.Object obj)
public BiLink addAll(BiList list)
public BiLink append(BiLink link)
public BiLink addFirst(java.lang.Object obj)
public BiLink addAllFirst(BiList list)
public BiLink prepend(BiLink link)
public java.lang.Object takeLast()
public java.lang.Object takeFirst()
public boolean contains(java.lang.Object obj)
public BiLink locate(java.lang.Object obj)
public BiLink locateEqual(java.lang.Object obj)
public int whereIs(java.lang.Object obj)
public BiLink remove(java.lang.Object obj)
public BiLink removeEqual(java.lang.Object obj)
public BiList addNew(java.lang.Object obj)
public void clear()
public BiList concatenate(BiList aList)
aList
- the list appended
public BiList split(BiLink middle)
middle
- the first element of second half of the list
this
object)public BiList copy()
public int length()
public void sort()
public void sort(java.util.Comparator cmp)
public boolean equals(java.lang.Object x)
java.lang.Object
内の equals
public java.lang.Object[] toArray()
public java.lang.String toString()
java.lang.Object
内の toString
public java.lang.Object clone()
java.lang.Object
内の clone
public java.util.Iterator iterator()
public void sanityTest()
public static void main(java.lang.String[] args)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |