public final class GnssStatusBuilder extends Object
GnssStatus
objects, since they have a hidden constructor.Modifier and Type | Class | Description |
---|---|---|
static class |
GnssStatusBuilder.GnssSatelliteInfo |
Information about a single satellite in a
GnssStatus . |
Modifier and Type | Method | Description |
---|---|---|
GnssStatusBuilder |
addAllSatellites(Collection<GnssStatusBuilder.GnssSatelliteInfo> satelliteInfos) |
Adds a collection of satellites to the
GnssStatus being built. |
GnssStatusBuilder |
addSatellite(GnssStatusBuilder.GnssSatelliteInfo satelliteInfo) |
Adds a satellite to the
GnssStatus being built. |
GnssStatus |
build() |
Builds the
GnssStatus from the satellites previously added. |
static GnssStatus |
buildFrom(GnssStatusBuilder.GnssSatelliteInfo... satelliteInfos) |
Convenience method to create a
GnssStatus directly from known satellite info. |
static GnssStatusBuilder |
create() |
Creates a new
GnssStatusBuilder . |
public static GnssStatusBuilder create()
GnssStatusBuilder
.public GnssStatusBuilder addSatellite(GnssStatusBuilder.GnssSatelliteInfo satelliteInfo)
GnssStatus
being built.public GnssStatusBuilder addAllSatellites(Collection<GnssStatusBuilder.GnssSatelliteInfo> satelliteInfos)
GnssStatus
being built.public GnssStatus build()
GnssStatus
from the satellites previously added.public static GnssStatus buildFrom(GnssStatusBuilder.GnssSatelliteInfo... satelliteInfos)
GnssStatus
directly from known satellite info.