net.sourceforge.domian.repository
Class HashSetRepository.HashSetRepositoryIterator<V extends Entity,T extends Entity>

java.lang.Object
  extended by net.sourceforge.domian.repository.HashSetRepository.HashSetRepositoryIterator<V,T>
All Implemented Interfaces:
java.util.Iterator<V>
Direct Known Subclasses:
InMemoryRepository.InMemoryRepositoryIterator
Enclosing class:
HashSetRepository<T extends Entity>

protected static class HashSetRepository.HashSetRepositoryIterator<V extends Entity,T extends Entity>
extends java.lang.Object
implements java.util.Iterator<V>

Inner iterator class for HashSetRepository.


Field Summary
protected  V currentEntity
           
protected  java.util.Iterator<T> entityIterator
           
protected  V nextEntity
           
protected  boolean nextIsInvoked
           
protected  boolean removeIsInvoked
           
protected  Specification<V> specification
           
 
Constructor Summary
protected HashSetRepository.HashSetRepositoryIterator()
           
protected HashSetRepository.HashSetRepositoryIterator(HashSetRepository<T> repository, Specification<V> specification)
           
 
Method Summary
protected  void findNextEntity()
           
 boolean hasNext()
           
 V next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

specification

protected Specification<V extends Entity> specification

entityIterator

protected java.util.Iterator<T extends Entity> entityIterator

nextIsInvoked

protected boolean nextIsInvoked

removeIsInvoked

protected boolean removeIsInvoked

currentEntity

protected V extends Entity currentEntity

nextEntity

protected V extends Entity nextEntity
Constructor Detail

HashSetRepository.HashSetRepositoryIterator

protected HashSetRepository.HashSetRepositoryIterator()

HashSetRepository.HashSetRepositoryIterator

protected HashSetRepository.HashSetRepositoryIterator(HashSetRepository<T> repository,
                                                      Specification<V> specification)
Method Detail

findNextEntity

protected void findNextEntity()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<V extends Entity>

next

public V next()
Specified by:
next in interface java.util.Iterator<V extends Entity>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<V extends Entity>


Copyright © 2006-2010. All Rights Reserved.