coins.aflow.util
クラス CoinsList.SubList

java.lang.Object
  |
  +--coins.aflow.util.CoinsList
        |
        +--coins.aflow.util.CoinsList.SubList
すべての実装インタフェース:
java.lang.Cloneable, java.util.Collection, java.util.List
含まれているクラス:
CoinsList

class CoinsList.SubList
extends CoinsList


入れ子クラスの概要
 
クラス coins.aflow.util.CoinsList から継承した入れ子クラス
CoinsList.Entry, CoinsList.Itr, CoinsList.SubList
 
フィールドの概要
 
クラス coins.aflow.util.CoinsList から継承したフィールド
fIterators, header, modCount, size
 
コンストラクタの概要
(パッケージプライベート) CoinsList.SubList(CoinsList list, int fromIndex, int toIndex)
           
 
メソッドの概要
 void add(int index, java.lang.Object element)
          Inserts the specified element at the specified position in this list.
 boolean addAll(java.util.Collection c)
          Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator.
 boolean addAll(int index, java.util.Collection c)
          Inserts all of the elements in the specified collection into this list, starting at the specified position.
 java.lang.Object get(int index)
          Returns the element at the specified position in this list.
 java.util.Iterator iterator()
           
 java.util.ListIterator listIterator(int index)
           
 java.lang.Object remove(int index)
          Removes the element at the specified position in this list.
 java.lang.Object set(int index, java.lang.Object element)
          Replaces the element at the specified position in this list with the specified element.
 int size()
          Returns the number of elements in this list.
 java.util.List subList(int fromIndex, int toIndex)
           
 
クラス coins.aflow.util.CoinsList から継承したメソッド
add, addBefore, addFirst, addLast, clear, clone, coinsIterator, coinsIterator, contains, containsAll, entry, equals, getFirst, getLast, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, notifyIteratorsOfAddition, notifyIteratorsOfClearance, notifyIteratorsOfRemoval, remove, remove, removeAll, removeFirst, removeLast, retainAll, toArray, toArray, toString
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

CoinsList.SubList

CoinsList.SubList(CoinsList list,
                  int fromIndex,
                  int toIndex)
メソッドの詳細

set

public java.lang.Object set(int index,
                            java.lang.Object element)
クラス CoinsList の記述:
Replaces the element at the specified position in this list with the specified element.

定義:
インタフェース java.util.List 内の set
オーバーライド:
クラス CoinsList 内の set
パラメータ:
index - index of element to replace.
element - element to be stored at the specified position.
戻り値:
the element previously at the specified position.

get

public java.lang.Object get(int index)
クラス CoinsList の記述:
Returns the element at the specified position in this list.

定義:
インタフェース java.util.List 内の get
オーバーライド:
クラス CoinsList 内の get
パラメータ:
index - index of element to return.
戻り値:
the element at the specified position in this list.

size

public int size()
クラス CoinsList の記述:
Returns the number of elements in this list.

定義:
インタフェース java.util.List 内の size
オーバーライド:
クラス CoinsList 内の size
戻り値:
the number of elements in this list.

add

public void add(int index,
                java.lang.Object element)
クラス CoinsList の記述:
Inserts the specified element at the specified position in this list. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

定義:
インタフェース java.util.List 内の add
オーバーライド:
クラス CoinsList 内の add
パラメータ:
index - index at which the specified element is to be inserted.
element - element to be inserted.

remove

public java.lang.Object remove(int index)
クラス CoinsList の記述:
Removes the element at the specified position in this list. Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

定義:
インタフェース java.util.List 内の remove
オーバーライド:
クラス CoinsList 内の remove
パラメータ:
index - the index of the element to removed.
戻り値:
the element previously at the specified position.

addAll

public boolean addAll(java.util.Collection c)
クラス CoinsList の記述:
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this list, and this list is nonempty.)

定義:
インタフェース java.util.List 内の addAll
オーバーライド:
クラス CoinsList 内の addAll
パラメータ:
c - the elements to be inserted into this list.

addAll

public boolean addAll(int index,
                      java.util.Collection c)
クラス CoinsList の記述:
Inserts all of the elements in the specified collection into this list, starting at the specified position. Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.

定義:
インタフェース java.util.List 内の addAll
オーバーライド:
クラス CoinsList 内の addAll
パラメータ:
index - index at which to insert first element from the specified collection.
c - elements to be inserted into this list.

iterator

public java.util.Iterator iterator()
定義:
インタフェース java.util.List 内の iterator
オーバーライド:
クラス CoinsList 内の iterator

listIterator

public java.util.ListIterator listIterator(int index)
定義:
インタフェース java.util.List 内の listIterator
オーバーライド:
クラス CoinsList 内の listIterator

subList

public java.util.List subList(int fromIndex,
                              int toIndex)
定義:
インタフェース java.util.List 内の subList
オーバーライド:
クラス CoinsList 内の subList