List of usage examples for org.apache.commons.collections4.iterators EmptyIterator EmptyIterator
protected EmptyIterator()
From source file:com.graphaware.tx.event.improved.propertycontainer.snapshot.LabelSnapshotIterator.java
public LabelSnapshotIterator(Node node, Iterable<Label> wrappedIterable, TransactionDataContainer transactionDataContainer) { this.node = node; this.wrappedIterator = wrappedIterable.iterator(); this.transactionDataContainer = transactionDataContainer; if (transactionDataContainer.getNodeTransactionData().hasBeenChanged(node)) { this.removedLabelsIterator = transactionDataContainer.getNodeTransactionData().removedLabels(node) .iterator();// w w w.j a v a 2s . c o m } else if (transactionDataContainer.getNodeTransactionData().hasBeenDeleted(node)) { this.removedLabelsIterator = transactionDataContainer.getNodeTransactionData().labelsOfDeletedNode(node) .iterator(); } else { this.removedLabelsIterator = EmptyIterator.emptyIterator(); } }