PlatformDataValues.Builder


public final class PlatformDataValues.Builder


Builder for PlatformDataValues.

Summary

Public constructors

Public methods

@NonNull PlatformDataValues

Builds the PlatformDataValues.

@NonNull PlatformDataValues.Builder

Puts a key/value pair.

@NonNull PlatformDataValues.Builder
putAll(@NonNull DynamicDataMap dynamicDataMap)

Puts all platform data values from a DynamicDataMap.

@NonNull PlatformDataValues.Builder

Puts all values from another PlatformDataValues.

Public constructors

Builder

Added in 1.0.0
public Builder()

Public methods

build

Added in 1.0.0
public @NonNull PlatformDataValues build()

Builds the PlatformDataValues.

put

Added in 1.0.0
public @NonNull PlatformDataValues.Builder <T extends DynamicBuilders.DynamicType> put(
    @NonNull PlatformDataKey<T> key,
    @NonNull DynamicDataBuilders.DynamicDataValue<T> value
)

Puts a key/value pair.

putAll

Added in 1.3.0-alpha09
public @NonNull PlatformDataValues.Builder putAll(@NonNull DynamicDataMap dynamicDataMap)

Puts all platform data values from a DynamicDataMap.

Values with keys that are not of the type PlatformDataKey will be ignored.

putAll

Added in 1.2.0
public @NonNull PlatformDataValues.Builder putAll(@NonNull PlatformDataValues other)

Puts all values from another PlatformDataValues.

Values not in other are not removed from this Builder.