public static <T> MutableByteCollection collectByte(
            Iterator<T> iterator,
            ByteFunction<? super T> byteFunction)
    {
        MutableByteCollection result = new ByteArrayList();
        while (iterator.hasNext())
        {
            result.add(byteFunction.byteValueOf(iterator.next()));
        }
        return result;
    }
public static < T > MutableByteCollection collectByte ( Iterator < T > iterator , ByteFunction < ? super T > byteFunction ) { MutableByteCollection result = new ByteArrayList ( ) ; while ( iterator . hasNext ( ) ) { result . add ( byteFunction . byteValueOf ( iterator . next ( ) ) ) ; } return result ; }
@see Iterate#collectByte(Iterable, ByteFunction)