|
nanoJBlend | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.util.AbstractQueue<E>
public abstract class AbstractQueue<E>
AbstractQueue は Queue を実装するための抽象クラスです。
AbstractQueue は null を要素として許容しません。
null を要素とすることを許容しない場合には、このクラスを継承したクラスで Queue を実装できます。
機能するインスタンスを生成するには、サブクラスで最低でも Queue#offer 、 Queue#poll を実装し、必要に応じて他のメソッドをオーバーライドして実装する必要があります。
| メソッドの概要 | |
|---|---|
boolean |
add(E o)
指定された要素をこのキューに追加します。 |
void |
clear()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
boolean |
contains(Object o)
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
boolean |
isEmpty()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
Iterator<E> |
iterator()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
E |
remove()
キューの最初の要素を除去して返します。 |
boolean |
remove(Object o)
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
int |
size()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
Object[] |
toArray()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| インタフェース java.util.Queue から継承されたメソッド |
|---|
offer, poll |
| メソッドの詳細 |
|---|
public boolean add(E o)
AbstractQueue クラスの実装は、 offer メソッドを呼び出します。
offer メソッドが true を返すとこのメソッドは true を返します。
false を返すとこのメソッドは llegalStateException をスローします。
Collection<E> 内の addo - このコレクションに含まれることを保証する要素
true を返します。
IllegalStateException - offer メソッドが false を返した場合public E remove()
AbstractQueue クラスの実装は、 poll メソッドを呼び出します。
poll メソッドが非 null を返すとこのメソッドは poll メソッドの戻り値を返します。
null を返すとこのメソッドは NoSuchElementException をスローします。
Queue<E> 内の removeNoSuchElementException - poll メソッドが null を返した場合public void clear()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の clearpublic boolean contains(Object o)
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の containso - このコレクションの要素であるかどうかを判定するオブジェクト
truepublic boolean isEmpty()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の isEmptytrue、そうでない場合 falsepublic Iterator<E> iterator()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Iterable<E> 内の iteratorCollection<E> 内の iteratorpublic boolean remove(Object o)
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の removeo - このコレクションに存在する場合に除去する要素
true 。
それ以外は false 。public int size()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の sizepublic Object[] toArray()
AbstractQueue クラスの実装は、UnsupportedOperationException をスローします。
Collection<E> 内の toArray
|
nanoJBlend | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||