DataKt
Added in 1.0.0
public final class DataKt
Summary
Public methods |
|
|---|---|
static final boolean |
Returns true if the instance of |
static final @NonNull Data |
Converts a list of pairs to a |
Public methods
hasKeyWithValueOfType
Artifact: androidx.work:work-runtime
public static final boolean <T extends Object> hasKeyWithValueOfType(@NonNull Data receiver, @NonNull String key)
Returns true if the instance of Data has a value corresponding to the given key with an expected type T.
workDataOf
Artifact: androidx.work:work-runtime
public static final @NonNull Data workDataOf(@NonNull Pair<@NonNull String, Object>... pairs)
Converts a list of pairs to a Data object.
If multiple pairs have the same key, the resulting map will contain the value from the last of those pairs.
Entries of the map are iterated in the order they were specified.