Class DataAttributesBuilder

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.DataAttributesBuilder

public final class DataAttributesBuilder extends NativeBase

Data attributes collection builder.

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 Details

    • DataAttributesBuilder

      public DataAttributesBuilder()

      Creates a data attributes builder instance.

  • Method Details

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, @NonNull String value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, long value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, float value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, double value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, boolean value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • with

      @NonNull public DataAttributesBuilder with(@NonNull String name, @NonNull DataAttributeValue value)

      Configures the builder to add the given attribute.

      Parameters:
      name -

      Attribute name.

      value -

      Attribute value.

      Returns:

      This data attributes builder instance.

    • build

      @NonNull public DataAttributes build()

      Builds instance of DataAttributes.

      Returns:

      Instance of the data attributes created with the given attributes.