
net.sf.saxon.transpile.CollectionMaker Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy