Class CollectionMaker


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

      Constructors 
      Constructor Description
      CollectionMaker()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> java.util.Iterator<E> emptyIterator​(java.lang.Class<E> over)
      Create an empty iterator over items of a specified type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionMaker

        public CollectionMaker()
    • Method Detail

      • emptyIterator

        public static <E> java.util.Iterator<E> emptyIterator​(java.lang.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