org.entityfs.util.itr
Class NoLockingDepthFirstIterator
java.lang.Object
org.entityfs.util.itr.AbstractLockingIterator
org.entityfs.util.itr.AbstractNoLockingIterator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.