Class ChunkByteIterable

    • Field Detail

      • size

        private final int size
    • Constructor Detail

      • ChunkByteIterable

        public ChunkByteIterable​(ByteIterable delegate,
                                 int size)
    • Method Detail

      • iterator

        public java.util.Iterator<ByteIterable> iterator()
      • each

        public void each​(Procedure<? super ByteIterable> 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)