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

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

Introduction

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

Prototype

public static ListIterator toListIterator(Iterator iterator) 

Source Link

Document

Gets a list iterator based on a simple iterator.

Usage

From source file:org.geotools.data.complex.FilteringMappingFeatureIterator.java

@Override
protected void initialiseSourceFeatures(FeatureTypeMapping mapping, Query query) throws IOException {
    super.initialiseSourceFeatures(mapping, query);
    listFeatureIterator = IteratorUtils.toListIterator(super.getSourceFeatureIterator());
}

From source file:org.omnaest.utils.table.impl.adapter.TableToResultSetAdapter.java

/**
 * Creates a new initialized adapter. For use with {@link TableAdapterProvider#adapter(TableAdapter)} use
 * {@link #TableToResultSetAdapter()} instead
 * /*w w  w . ja  va2  s . com*/
 * @see TableToResultSetAdapter
 * @param table
 */
@SuppressWarnings({ "rawtypes", "unchecked" })
TableToResultSetAdapter(Table table) {
    super();
    this.table = table;
    this.rowIterator = IteratorUtils.toListIterator(table.rows().iterator());
}