@Test public void toBuilder() { final WayPoint object = nextWayPoint(new Random()); Assert.assertEquals( object.toBuilder().build(), object ); Assert.assertNotSame( object.toBuilder().build(), object ); }
public Builder toBuilder() { return builder() .lat(_latitude) .lon(_longitude) .ele(_elevation) .speed(_speed) .time(_time) .magvar(_magneticVariation) .geoidheight(_geoidHeight) .name(_name) .cmt(_comment) .desc(_description) .src(_source) .links(_links) .sym(_symbol) .type(_type) .fix(_fix) .sat(_sat) .hdop(_hdop) .vdop(_vdop) .pdop(_pdop) .ageofdgpsdata(_ageOfGPSData) .dgpsid(_dgpsID) .course(_course) .extensions(_extensions); }
WayPoint implements Point, Serializable { public Builder toBuilder() { return builder() .lat(_latitude) .lon(_longitude) .ele(_elevation) .speed(_speed) .time(_time) .magvar(_magneticVariation) .geoidheight(_geoidHeight) .name(_name) .cmt(_comment) .desc(_description) .src(_source) .links(_links) .sym(_symbol) .type(_type) .fix(_fix) .sat(_sat) .hdop(_hdop) .vdop(_vdop) .pdop(_pdop) .ageofdgpsdata(_ageOfGPSData) .dgpsid(_dgpsID) .course(_course) .extensions(_extensions); } }
WayPoint implements Point, Serializable { public Builder toBuilder() { return builder() .lat(_latitude) .lon(_longitude) .ele(_elevation) .speed(_speed) .time(_time) .magvar(_magneticVariation) .geoidheight(_geoidHeight) .name(_name) .cmt(_comment) .desc(_description) .src(_source) .links(_links) .sym(_symbol) .type(_type) .fix(_fix) .sat(_sat) .hdop(_hdop) .vdop(_vdop) .pdop(_pdop) .ageofdgpsdata(_ageOfGPSData) .dgpsid(_dgpsID) .course(_course) .extensions(_extensions); } private  WayPoint(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course,
		final Document extensions
	); }
WayPoint implements Point, Serializable { public Builder toBuilder() { return builder() .lat(_latitude) .lon(_longitude) .ele(_elevation) .speed(_speed) .time(_time) .magvar(_magneticVariation) .geoidheight(_geoidHeight) .name(_name) .cmt(_comment) .desc(_description) .src(_source) .links(_links) .sym(_symbol) .type(_type) .fix(_fix) .sat(_sat) .hdop(_hdop) .vdop(_vdop) .pdop(_pdop) .ageofdgpsdata(_ageOfGPSData) .dgpsid(_dgpsID) .course(_course) .extensions(_extensions); } private  WayPoint(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course,
		final Document extensions
	); @Override Latitude getLatitude(); @Override Longitude getLongitude(); @Override Optional<Length> getElevation(); Optional<Speed> getSpeed(); @Override Optional<ZonedDateTime> getTime(); Optional<Degrees> getMagneticVariation(); Optional<Length> getGeoidHeight(); Optional<String> getName(); Optional<String> getComment(); Optional<String> getDescription(); Optional<String> getSource(); List<Link> getLinks(); Optional<String> getSymbol(); Optional<String> getType(); Optional<Fix> getFix(); Optional<UInt> getSat(); Optional<Double> getHdop(); Optional<Double> getVdop(); Optional<Double> getPdop(); Optional<Duration> getAgeOfGPSData(); Optional<DGPSStation> getDGPSID(); Optional<Degrees> getCourse(); Optional<Document> getExtensions(); Builder toBuilder(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Builder builder(); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course,
		final Document extensions
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final ZonedDateTime time
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree,
		final long timeEpochMilli
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final ZonedDateTime time
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree,
		final double elevationMeter,
		final long timeEpochMilli
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course
	); static WayPoint of(final Point point); }
WayPoint implements Point, Serializable { public Builder toBuilder() { return builder() .lat(_latitude) .lon(_longitude) .ele(_elevation) .speed(_speed) .time(_time) .magvar(_magneticVariation) .geoidheight(_geoidHeight) .name(_name) .cmt(_comment) .desc(_description) .src(_source) .links(_links) .sym(_symbol) .type(_type) .fix(_fix) .sat(_sat) .hdop(_hdop) .vdop(_vdop) .pdop(_pdop) .ageofdgpsdata(_ageOfGPSData) .dgpsid(_dgpsID) .course(_course) .extensions(_extensions); } private  WayPoint(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course,
		final Document extensions
	); @Override Latitude getLatitude(); @Override Longitude getLongitude(); @Override Optional<Length> getElevation(); Optional<Speed> getSpeed(); @Override Optional<ZonedDateTime> getTime(); Optional<Degrees> getMagneticVariation(); Optional<Length> getGeoidHeight(); Optional<String> getName(); Optional<String> getComment(); Optional<String> getDescription(); Optional<String> getSource(); List<Link> getLinks(); Optional<String> getSymbol(); Optional<String> getType(); Optional<Fix> getFix(); Optional<UInt> getSat(); Optional<Double> getHdop(); Optional<Double> getVdop(); Optional<Double> getPdop(); Optional<Duration> getAgeOfGPSData(); Optional<DGPSStation> getDGPSID(); Optional<Degrees> getCourse(); Optional<Document> getExtensions(); Builder toBuilder(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static Builder builder(); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course,
		final Document extensions
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final ZonedDateTime time
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree,
		final long timeEpochMilli
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final ZonedDateTime time
	); static WayPoint of(
		final double latitudeDegree,
		final double longitudeDegree,
		final double elevationMeter,
		final long timeEpochMilli
	); static WayPoint of(
		final Latitude latitude,
		final Longitude longitude,
		final Length elevation,
		final Speed speed,
		final ZonedDateTime time,
		final Degrees magneticVariation,
		final Length geoidHeight,
		final String name,
		final String comment,
		final String description,
		final String source,
		final List<Link> links,
		final String symbol,
		final String type,
		final Fix fix,
		final UInt sat,
		final Double hdop,
		final Double vdop,
		final Double pdop,
		final Duration ageOfGPSData,
		final DGPSStation dgpsID,
		final Degrees course
	); static WayPoint of(final Point point);  }