Example usage for org.apache.commons.collections4.iterators EmptyIterator EmptyIterator

List of usage examples for org.apache.commons.collections4.iterators EmptyIterator EmptyIterator

Introduction

In this page you can find the example usage for org.apache.commons.collections4.iterators EmptyIterator EmptyIterator.

Prototype

protected EmptyIterator() 

Source Link

Document

Constructor.

Usage

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();
    }
}