@Test public void toBuilder() { final TrackSegment object = TrackSegment.of( IntStream.range(0, 25) .mapToObj(i -> WayPoint.builder().build(i, i)) .collect(Collectors.toList()) ); Assert.assertEquals( object.toBuilder().build(), object ); Assert.assertNotSame( object.toBuilder().build(), object ); }
public Builder toBuilder() { return builder() .points(_points) .extensions(_extensions); }
TrackSegment implements Iterable<WayPoint>, Serializable { public Builder toBuilder() { return builder() .points(_points) .extensions(_extensions); } }
TrackSegment implements Iterable<WayPoint>, Serializable { public Builder toBuilder() { return builder() .points(_points) .extensions(_extensions); } private  TrackSegment(final List<WayPoint> points, final Document extensions); }
TrackSegment implements Iterable<WayPoint>, Serializable { public Builder toBuilder() { return builder() .points(_points) .extensions(_extensions); } private  TrackSegment(final List<WayPoint> points, final Document extensions); List<WayPoint> getPoints(); Stream<WayPoint> points(); @Override Iterator<WayPoint> iterator(); Optional<Document> getExtensions(); Builder toBuilder(); boolean isEmpty(); boolean nonEmpty(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Builder builder(); static TrackSegment of(
		final List<WayPoint> points,
		final Document extensions
	); static TrackSegment of(final List<WayPoint> points); }
TrackSegment implements Iterable<WayPoint>, Serializable { public Builder toBuilder() { return builder() .points(_points) .extensions(_extensions); } private  TrackSegment(final List<WayPoint> points, final Document extensions); List<WayPoint> getPoints(); Stream<WayPoint> points(); @Override Iterator<WayPoint> iterator(); Optional<Document> getExtensions(); Builder toBuilder(); boolean isEmpty(); boolean nonEmpty(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Builder builder(); static TrackSegment of(
		final List<WayPoint> points,
		final Document extensions
	); static TrackSegment of(final List<WayPoint> points);  }