@Test public void boxedDoubles() throws Exception { assertIterableEquals(Arrays.asList(1., 2., 3.), Primitives.box(new double[]{1, 2, 3})); assertIterableEquals(Collections.<Double>emptyList(), Primitives.box(new double[0])); assertIterableEquals(Primitives.box(new double[]{1, 2, 3}), Primitives.box(new double[]{1, 2, 3})); }
public static Stream<Integer> box(final int[] integers) { return new FixedSizeStream<>(integers.length, new Func1<Integer, Integer>() { @Override public Integer call(Integer index) { return integers[index]; } }); }
Primitives { public static Stream<Integer> box(final int[] integers) { return new FixedSizeStream<>(integers.length, new Func1<Integer, Integer>() { @Override public Integer call(Integer index) { return integers[index]; } }); } }
Primitives { public static Stream<Integer> box(final int[] integers) { return new FixedSizeStream<>(integers.length, new Func1<Integer, Integer>() { @Override public Integer call(Integer index) { return integers[index]; } }); }  }
Primitives { public static Stream<Integer> box(final int[] integers) { return new FixedSizeStream<>(integers.length, new Func1<Integer, Integer>() { @Override public Integer call(Integer index) { return integers[index]; } }); }  static Stream<Integer> box(final int[] integers); static Stream<Long> box(final long[] longs); static Stream<Float> box(final float[] floats); static Stream<Byte> box(final byte[] bytes); static Stream<Double> box(final double[] doubles); }
Primitives { public static Stream<Integer> box(final int[] integers) { return new FixedSizeStream<>(integers.length, new Func1<Integer, Integer>() { @Override public Integer call(Integer index) { return integers[index]; } }); }  static Stream<Integer> box(final int[] integers); static Stream<Long> box(final long[] longs); static Stream<Float> box(final float[] floats); static Stream<Byte> box(final byte[] bytes); static Stream<Double> box(final double[] doubles);  }