CreationExtras.Empty


public static class CreationExtras.Empty extends CreationExtras


An empty read-only CreationExtras.

Summary

Public fields

static @NonNull CreationExtras.Empty

Public methods

T
<T extends Object> get(@NonNull CreationExtras.Key<@NonNull T> key)

Returns the value to which the specified key is associated, or null if this CreationExtras contains no mapping for the key.

Inherited methods

From androidx.lifecycle.viewmodel.CreationExtras
boolean
equals(Object other)

Compares the specified object with this CreationExtras for equality.

int

Returns the hash code value for this CreationExtras.

@NonNull String

Returns a string representation of this CreationExtras.

Public fields

INSTANCE

Added in 2.5.0
public static @NonNull CreationExtras.Empty INSTANCE

Public methods

get

Added in 2.9.0-alpha06
public T <T extends Object> get(@NonNull CreationExtras.Key<@NonNull T> key)

Returns the value to which the specified key is associated, or null if this CreationExtras contains no mapping for the key.