org.entityfs.util.itr
Class AbstractNoLockingIterator

java.lang.Object
  extended by org.entityfs.util.itr.AbstractLockingIterator
      extended by org.entityfs.util.itr.AbstractNoLockingIterator
All Implemented Interfaces:
Iterator<EntityView>, LockingIterator<EntityView>
Direct Known Subclasses:
NoLockingDepthFirstIterator, NoLockingDepthLastIterator

public abstract class AbstractNoLockingIterator
extends AbstractLockingIterator
implements LockingIterator<EntityView>

An abstract base class for non-locking LockingIterator:s.

EntityFS iterators are not thread safe. Don't use them concurrently from several threads without synchronizing access to them.

Since:
1.0
Author:
Karl Gustafsson

Constructor Summary
protected AbstractNoLockingIterator(EntityListable dv, boolean depthLast, Filter<? super EntityView> filter)
           
 
Method Summary
 boolean hasNext()
           
 EntityView next()
           
 void remove()
           
 
Methods inherited from class org.entityfs.util.itr.AbstractLockingIterator
assertNotUnlocked, lock, unlock, unlockAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.entityfs.util.itr.LockingIterator
unlock, unlockAll
 

Constructor Detail

AbstractNoLockingIterator

protected AbstractNoLockingIterator(EntityListable dv,
                                    boolean depthLast,
                                    Filter<? super EntityView> filter)
Method Detail

next

public EntityView next()
Specified by:
next in interface Iterator<EntityView>

remove

public void remove()
Specified by:
remove in interface Iterator<EntityView>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<EntityView>