Class ChunkShortIterable

    • Field Detail

      • size

        private final int size
    • Constructor Detail

      • ChunkShortIterable

        public ChunkShortIterable​(ShortIterable delegate,
                                  int size)
    • Method Detail

      • each

        public void each​(Procedure<? super ShortIterable> procedure)
        Description copied from interface: RichIterable
        The procedure is executed for each element in the iterable.

        Example using a Java 8 lambda expression:

         people.each(person -> LOGGER.info(person.getName()));
         

        Example using an anonymous inner class:

         people.each(new Procedure<Person>()
         {
             public void value(Person person)
             {
                 LOGGER.info(person.getName());
             }
         });
         
        This method is a variant of InternalIterable.forEach(Procedure) that has a signature conflict with Iterable.forEach(java.util.function.Consumer).
        See Also:
        InternalIterable.forEach(Procedure), Iterable.forEach(java.util.function.Consumer)