Class DataAttributesBuilder
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 Summary
Constructors Constructor Description DataAttributesBuilder()Creates a data attributes builder instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataAttributesbuild()Builds instance of DataAttributes.DataAttributesBuilderwith(java.lang.String name, boolean value)Configures the builder to add the given attribute.DataAttributesBuilderwith(java.lang.String name, double value)Configures the builder to add the given attribute.DataAttributesBuilderwith(java.lang.String name, float value)Configures the builder to add the given attribute.DataAttributesBuilderwith(java.lang.String name, long value)Configures the builder to add the given attribute.DataAttributesBuilderwith(java.lang.String name, DataAttributeValue value)Configures the builder to add the given attribute.DataAttributesBuilderwith(java.lang.String name, java.lang.String value)Configures the builder to add the given attribute.
-
-
-
Method Detail
-
with
@NonNull public DataAttributesBuilder with(@NonNull java.lang.String name, @NonNull java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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.
-
-