@Test(expectedExceptions = UnsupportedOperationException.class) public void parallelPointStream() { Length length = Stream.generate(() -> WayPointTest.nextWayPoint(new Random())) .limit(1000) .parallel() .collect(GEOID.toPathLength()); Assert.assertNotNull(length); }
public Collector<Point, ?, Length> toPathLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::pathLength ); }
Geoid { public Collector<Point, ?, Length> toPathLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::pathLength ); } }
Geoid { public Collector<Point, ?, Length> toPathLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::pathLength ); } private  Geoid(final Ellipsoid ellipsoid); }
Geoid { public Collector<Point, ?, Length> toPathLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::pathLength ); } private  Geoid(final Ellipsoid ellipsoid); Ellipsoid ellipsoid(); Length distance(final Point start, final Point end); Collector<Point, ?, Length> toPathLength(); Collector<Point, ?, Length> toTourLength(); static Geoid of(final Ellipsoid ellipsoid); }
Geoid { public Collector<Point, ?, Length> toPathLength() { return Collector.of( () -> new LengthCollector(this), LengthCollector::add, LengthCollector::combine, LengthCollector::pathLength ); } private  Geoid(final Ellipsoid ellipsoid); Ellipsoid ellipsoid(); Length distance(final Point start, final Point end); Collector<Point, ?, Length> toPathLength(); Collector<Point, ?, Length> toTourLength(); static Geoid of(final Ellipsoid ellipsoid); static final Geoid WGS84; static final Geoid IERS_1989; static final Geoid IERS_2003; static final Geoid DEFAULT; }