org.seasar.util.collection
クラス EnumerationIterator<T>
java.lang.Object
org.seasar.util.collection.EnumerationIterator<T>
- 型パラメータ:
T - 列挙する要素の型
- すべての実装されたインタフェース:
- Iterator<T>
public class EnumerationIterator<T>
- extends Object
- implements Iterator<T>
Enumerationを Iteratorにするためのアダブタです。
- 作成者:
- shot
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumerationIterator
public EnumerationIterator(Enumeration<T> enumeration)
EnumerationをラップしたIteratorのインスタンスを構築します。
- パラメータ:
enumeration - Enumeration。nullであってはいけません
iterable
public static <T> Iterable<T> iterable(Enumeration<T> enumeration)
- for each構文で使用するために
EnumerationをラップしたIterableを返します。
- 型パラメータ:
T - 列挙する要素の型- パラメータ:
enumeration - Enumeration。nullであってはいけません
- 戻り値:
EnumerationをラップしたIterable
remove
public void remove()
- 定義:
- インタフェース
Iterator<T> 内の remove
hasNext
public boolean hasNext()
- 定義:
- インタフェース
Iterator<T> 内の hasNext
next
public T next()
- 定義:
- インタフェース
Iterator<T> 内の next
Copyright © 2010-2012 The Seasar Foundation. All Rights Reserved.