shohaku.core.collections.decorator
クラス UnmodifiableIterator

java.lang.Object
  拡張shohaku.core.collections.decorator.DecoratedIterator
      拡張shohaku.core.collections.decorator.UnmodifiableIterator
すべての実装インタフェース:
java.util.Iterator
直系の既知のサブクラス:
UnmodifiableListIterator

public class UnmodifiableIterator
extends DecoratedIterator

指定された反復子の変更不可能なビューを提供します。


フィールドの概要
 
クラス shohaku.core.collections.decorator.DecoratedIterator から継承したフィールド
i
 
コンストラクタの概要
UnmodifiableIterator(java.util.Iterator iterator)
          ラップする反復子を指定して初期化します。
 
メソッドの概要
 void remove()
          UnsupportedOperationException を発生させます。
 
クラス shohaku.core.collections.decorator.DecoratedIterator から継承したメソッド
hasNext, next
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

UnmodifiableIterator

public UnmodifiableIterator(java.util.Iterator iterator)
ラップする反復子を指定して初期化します。

パラメータ:
iterator - ラップする反復子
メソッドの詳細

remove

public void remove()
UnsupportedOperationException を発生させます。

定義:
インタフェース java.util.Iterator 内の remove
オーバーライド:
クラス DecoratedIterator 内の remove
関連項目:
Iterator.remove()