Class IterableTests.FakeIterable

  • All Implemented Interfaces:
    Enclosing class:

    public static class IterableTests.FakeIterable
    extends java.lang.Object
    implements java.lang.Iterable<java.lang.Integer>
    Implements the Iterable interface without being a Collection, using composition. Also provides a method that populates the list with a particular number of elements, and another one that creates new instances. The create method is required in order to test that Iterable values are not wrapped by the PointExecutor.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IterableTests.FakeIterable create​(int nElements)  
      java.util.Iterator<java.lang.Integer> iterator()  
      void populate​(int nElements)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • FakeIterable

        public FakeIterable()
    • Method Detail

      • populate

        public void populate​(int nElements)
      • iterator

        public java.util.Iterator<java.lang.Integer> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Integer>