All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.saxon.transpile.CollectionMaker Maven / Gradle / Ivy

There is a newer version: 12.5
Show newest version
package net.sf.saxon.transpile;

import java.util.Collections;
import java.util.Iterator;

/**
 * Provides alternatives to methods such as {@link Collections#emptyList} and {@link Collections#emptyIterator}
 * designed to facilitate transpilation to C#
 */

public class CollectionMaker {

    /**
     * Create an empty iterator over items of a specified type
     * @param over the class of items (not) delivered by the iterator
     * @param  the class of items (not) delivered by the iterator
     * @return an empty iterator
     */

    public static  Iterator emptyIterator(Class over) {
        return Collections.emptyIterator();
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy