Class CollectionMaker

java.lang.Object
net.sf.saxon.transpile.CollectionMaker

public class CollectionMaker extends Object
Provides alternatives to methods such as Collections.emptyList() and Collections.emptyIterator() designed to facilitate transpilation to C#
  • Constructor Details

    • CollectionMaker

      public CollectionMaker()
  • Method Details

    • emptyIterator

      public static <E> Iterator<E> emptyIterator(Class<E> over)
      Create an empty iterator over items of a specified type
      Type Parameters:
      E - the class of items (not) delivered by the iterator
      Parameters:
      over - the class of items (not) delivered by the iterator
      Returns:
      an empty iterator