Example usage for org.apache.commons.collections IteratorUtils emptyListIterator

List of usage examples for org.apache.commons.collections IteratorUtils emptyListIterator

Introduction

In this page you can find the example usage for org.apache.commons.collections IteratorUtils emptyListIterator.

Prototype

public static ResettableListIterator emptyListIterator() 

Source Link

Document

Gets an empty list iterator.

Usage

From source file:org.drools.planner.core.heuristic.selector.common.iterator.AbstractOriginalSwapIterator.java

public AbstractOriginalSwapIterator(ListIterable<SubS> leftSubSelector, ListIterable<SubS> rightSubSelector) {
    this.leftSubSelector = leftSubSelector;
    this.rightSubSelector = rightSubSelector;
    leftEqualsRight = (leftSubSelector == rightSubSelector);
    leftSubSelectionIterator = leftSubSelector.listIterator();
    rightSubSelectionIterator = IteratorUtils.emptyListIterator();
    createUpcomingSelection();/*from   w w  w .  ja va 2s. c  o m*/
}

From source file:org.optaplanner.core.impl.heuristic.selector.common.iterator.AbstractOriginalSwapIterator.java

public AbstractOriginalSwapIterator(ListIterable<SubS> leftSubSelector, ListIterable<SubS> rightSubSelector) {
    this.leftSubSelector = leftSubSelector;
    this.rightSubSelector = rightSubSelector;
    leftEqualsRight = (leftSubSelector == rightSubSelector);
    leftSubSelectionIterator = leftSubSelector.listIterator();
    rightSubSelectionIterator = IteratorUtils.emptyListIterator();
}