net.sf.saxon.transpile.CollectionMaker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Saxon-HE Show documentation
Show all versions of Saxon-HE Show documentation
The XSLT and XQuery Processor
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();
}
}