NavType.SerializableArrayType

public final class NavType.SerializableArrayType<D extends Serializable> extends NavType


SerializableArrayType is used for NavArguments that hold arrays of Serializables. This type also supports arrays of Enums.

Null values are supported. Default values in Navigation XML files are not supported.

Summary

Public fields

@NonNull String

The name of this type.

Public constructors

<D extends Serializable> SerializableArrayType(Class<D> type)

Public methods

boolean
equals(Object other)
D[]
get(Bundle bundle, String key)

Get a value of this type from the bundle

int
D[]
void
put(Bundle bundle, String key, D[] value)

Put a value of this type in the bundle

Inherited methods

From class NavType

Public fields

name

public @NonNull String name

The name of this type.

This is the same value that is used in Navigation XML argType attribute.

Returns
@NonNull String

name of this type

Public constructors

SerializableArrayType

public final <D extends Serializable> SerializableArrayType(Class<D> type)
Parameters
Class<D> type

the Serializable component class of the array