Data.Builder

public static final class Data.Builder
extends Object

java.lang.Object
   ↳ androidx.work.Data.Builder


A builder for Data objects.

Summary

Public constructors

Builder()

Public methods

Data build()

Builds a Data object.

Data.Builder putAll(Map<String, Object> values)

Puts all input key-value pairs from a Map into the Builder.

Data.Builder putAll(Data data)

Puts all input key-value pairs from a Data into the Builder.

Data.Builder putBoolean(String key, boolean value)

Puts a boolean into the arguments.

Data.Builder putBooleanArray(String key, boolean[] value)

Puts a boolean array into the arguments.

Data.Builder putByte(String key, byte value)

Puts an byte into the arguments.

Data.Builder putByteArray(String key, byte[] value)

Puts an integer array into the arguments.

Data.Builder putDouble(String key, double value)

Puts a double into the arguments.

Data.Builder putDoubleArray(String key, double[] value)

Puts a double array into the arguments.

Data.Builder putFloat(String key, float value)

Puts a float into the arguments.

Data.Builder putFloatArray(String key, float[] value)

Puts a float array into the arguments.

Data.Builder putInt(String key, int value)

Puts an integer into the arguments.

Data.Builder putIntArray(String key, int[] value)

Puts an integer array into the arguments.

Data.Builder putLong(String key, long value)

Puts a long into the arguments.

Data.Builder putLongArray(String key, long[] value)

Puts a long array into the arguments.

Data.Builder putString(String key, String value)

Puts a String into the arguments.

Data.Buil