|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.argius.stu.text.StringQueue
文字列キューです。
リストのラッパーですが、提供される操作は限定されています。
また、null
は空文字列に置き換えられます。
コンストラクタの概要 | |
StringQueue()
空の文字列キューを生成します。 |
|
StringQueue(String[] s)
文字列配列から文字列キューを生成します。 |
メソッドの概要 | |
String |
draw()
文字列を取り出します。 |
String |
drawAll()
文字列を全て取り出します。 |
void |
inject(String s)
文字列を追加します。 |
boolean |
isEmpty()
キューが空かどうか調べます。 |
int |
size()
キューの要素数を返します。 |
String |
toString()
このオブジェクトの文字列形式を取得します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public StringQueue()
public StringQueue(String[] s)
null
は、長さゼロの文字列として扱われます。
s
- 文字列配列メソッドの詳細 |
public void inject(String s)
null
は、長さゼロの文字列として扱われます。
s
- 文字列public String draw()
public String drawAll()
public int size()
public boolean isEmpty()
true
、それ以外はfalse
public String toString()
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |