org.entityfs.util.itr
Class NoLockingDepthFirstIterator

java.lang.Object
  extended by org.entityfs.util.itr.AbstractLockingIterator
      extended by org.entityfs.util.itr.AbstractNoLockingIterator
          extended by org.entityfs.util.itr.NoLockingDepthFirstIterator
All Implemented Interfaces:
Iterator<EntityView>, DepthFirstIterator<EntityView>, LockingDepthFirstIterator<EntityView>, LockingIterator<EntityView>

public class NoLockingDepthFirstIterator
extends AbstractNoLockingIterator
implements LockingDepthFirstIterator<EntityView>

This is a depth first iterator that does not lock the returned entities. It implements the LockingIterator interface anyway.

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
In_jar:
entityfs-util

Constructor Summary
NoLockingDepthFirstIterator(EntityListable el)
          Create a depth first iterator on the supplied directory.
NoLockingDepthFirstIterator(EntityListable el, Filter<? super EntityView> filter)
          Create a depth first iterator on the supplied directory that will only return elements that pass the filter.
 
Method Summary
 
Methods inherited from class org.entityfs.util.itr.AbstractNoLockingIterator
hasNext, next, 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
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

NoLockingDepthFirstIterator

public NoLockingDepthFirstIterator(EntityListable el)
Create a depth first iterator on the supplied directory.

Parameters:
el - The source for entities.

NoLockingDepthFirstIterator

public NoLockingDepthFirstIterator(EntityListable el,
                                   Filter<? super EntityView> filter)
Create a depth first iterator on the supplied directory that will only return elements that pass the filter.

Parameters:
el - The source for entities.
filter - The filter.