Class PointDataBuilder


  • public final class PointDataBuilder
    extends NativeBase

    Builder of PointData instances.

    Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

    • Constructor Detail

      • PointDataBuilder

        public PointDataBuilder()

        Creates a builder instance.

    • Method Detail

      • withCoordinates

        @NonNull
        public PointDataBuilder withCoordinates​(@NonNull
                                                GeoCoordinates coordinates)

        Configures the builder with geodetic coordinates for point to be created.

        Parameters:
        coordinates -

        Geodetic coordinates of the point. Altitude of coordinates is ignored.

        Returns:

        The builder.

      • withAttributes

        @NonNull
        public PointDataBuilder withAttributes​(@NonNull
                                               DataAttributes attributes)

        Configures the builder with custom attributes for point to be created.

        Parameters:
        attributes -

        Custom data attributes to be associated with the point.

        Returns:

        The builder.

      • build

        @NonNull
        public PointData build()

        Builds an instance of PointData and resets the builder instance.

        Returns:

        Instance of PointData created with the configured parameters.