@Test public void longStream() { final LongChromosome chromosome = LongChromosome.of(0, 10_000, 1000); final long[] values = chromosome.longStream().toArray(); Assert.assertEquals(values.length, 1000); for (int i = 0; i < values.length; ++i) { Assert.assertEquals(chromosome.get(i).longValue(), values[i]); Assert.assertEquals(chromosome.longValue(i), values[i]); } }
public LongStream longStream() { return IntStream.range(0, length()).mapToLong(this::longValue); }
LongChromosome extends AbstractBoundedChromosome<Long, LongGene> implements
		NumericChromosome<Long, LongGene>,
		Serializable { public LongStream longStream() { return IntStream.range(0, length()).mapToLong(this::longValue); } }
LongChromosome extends AbstractBoundedChromosome<Long, LongGene> implements
		NumericChromosome<Long, LongGene>,
		Serializable { public LongStream longStream() { return IntStream.range(0, length()).mapToLong(this::longValue); } protected  LongChromosome(
		final ISeq<LongGene> genes,
		final IntRange lengthRange
	); }
LongChromosome extends AbstractBoundedChromosome<Long, LongGene> implements
		NumericChromosome<Long, LongGene>,
		Serializable { public LongStream longStream() { return IntStream.range(0, length()).mapToLong(this::longValue); } protected  LongChromosome(
		final ISeq<LongGene> genes,
		final IntRange lengthRange
	); @Override LongChromosome newInstance(final ISeq<LongGene> genes); @Override LongChromosome newInstance(); LongChromosome map(final Function<? super long[], long[]> f); LongStream longStream(); long[] toArray(final long[] array); long[] toArray(); static LongChromosome of(final LongGene... genes); static LongChromosome of(final Iterable<LongGene> genes); static LongChromosome of(
		final long min,
		final long max,
		final IntRange lengthRange
	); static LongChromosome of(
		final long min,
		final long max,
		final int length
	); static LongChromosome of(
		final LongRange range,
		final IntRange lengthRange
	); static LongChromosome of(final LongRange range, final int length); static LongChromosome of(final long min, final long max); static LongChromosome of(final LongRange range); }
LongChromosome extends AbstractBoundedChromosome<Long, LongGene> implements
		NumericChromosome<Long, LongGene>,
		Serializable { public LongStream longStream() { return IntStream.range(0, length()).mapToLong(this::longValue); } protected  LongChromosome(
		final ISeq<LongGene> genes,
		final IntRange lengthRange
	); @Override LongChromosome newInstance(final ISeq<LongGene> genes); @Override LongChromosome newInstance(); LongChromosome map(final Function<? super long[], long[]> f); LongStream longStream(); long[] toArray(final long[] array); long[] toArray(); static LongChromosome of(final LongGene... genes); static LongChromosome of(final Iterable<LongGene> genes); static LongChromosome of(
		final long min,
		final long max,
		final IntRange lengthRange
	); static LongChromosome of(
		final long min,
		final long max,
		final int length
	); static LongChromosome of(
		final LongRange range,
		final IntRange lengthRange
	); static LongChromosome of(final LongRange range, final int length); static LongChromosome of(final long min, final long max); static LongChromosome of(final LongRange range);  }