Class IterableTests.FakeIterable

  • All Implemented Interfaces:
    Enclosing class:

    public static class IterableTests.FakeIterable
    extends Object
    implements Iterable<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.