FileDocCategorySizeDatePackage
SingletonIterator.javaAPI DocHibernate 3.2.5604Tue Apr 26 01:37:54 BST 2005org.hibernate.util

SingletonIterator

public final class SingletonIterator extends Object implements Iterator
author
Gavin King

Fields Summary
private Object
value
private boolean
hasNext
Constructors Summary
public SingletonIterator(Object value)

		this.value = value;
	
Methods Summary
public booleanhasNext()


	   
		return hasNext;
	
public java.lang.Objectnext()

		if (hasNext) {
			hasNext = false;
			return value;
		}
		else {
			throw new IllegalStateException();
		}
	
public voidremove()

		throw new UnsupportedOperationException();