org.entityfs.util.itr
Class NoLockingDepthLastIterator

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

public class NoLockingDepthLastIterator
extends AbstractNoLockingIterator
implements LockingDepthFirstIterator<EntityView>

This is a depth last 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

Constructor Summary
NoLockingDepthLastIterator(EntityListable el)
          Create a depth last iterator on the supplied directory.
NoLockingDepthLastIterator(EntityListable el, Filter<? super EntityView> filter)
          Create a depth last 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

NoLockingDepthLastIterator

public NoLockingDepthLastIterator(EntityListable el)
Create a depth last iterator on the supplied directory.

Parameters:
el - The source for entities.

NoLockingDepthLastIterator

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

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