car/src/main/java/androidx/car/navigation/utils/BundleMarshaller.java
public <T extends Bundlable> void putBundlableList(@NonNull String key,
            @Nullable List<T> values) {
        withKeyPrefix(key, () -> {
            putInt(SIZE_KEY, values != null ? values.size() : NULL_SIZE);
            if (values != null) {
                int pos = 0;
                // Using for-each as the provided list might not implement random access (e.g. it
                // might be a linked list).
                for (T value : values) {
                    putBundlable(String.valueOf(pos), value);
                    pos++;
                }
            }
        });
    }
/**
     * Inserts a {@link List} of {@link Bundlable} values, replacing any existing value for the
     * given key.
     *
     * @param key lower camel case alphanumerical identifier
     * @param values a {@link List} of {@link Bundlable} values, or null
     */
Inserts a  List of  Bundlable values, replacing any existing value for the
given key.

@param key lower camel case alphanumerical identifier
@param values a  List of  Bundlable values, or null
Inserts a List of Bundlable values replacing any existing value for the given key . @param key lower camel case alphanumerical identifier @param values a List of Bundlable values or null
public <T extends Bundlable> void putBundlableList(@NonNull String key,
            @Nullable List<T> values) {
        withKeyPrefix(key, () -> {
            putInt(SIZE_KEY, values != null ? values.size() : NULL_SIZE);
            if (values != null) {
                int pos = 0;
                for (T value : values) {
                    putBundlable(String.valueOf(pos), value);
                    pos++;
                }
            }
        });
    }
public < T extends Bundlable > void putBundlableList ( @ NonNull String key , @ Nullable List < T > values ) { withKeyPrefix ( key , ( ) -> { putInt ( SIZE_KEY , values != null ? values . size ( ) : NULL_SIZE ) ; if ( values != null ) { int pos = 0 ; for ( T value : values ) { putBundlable ( String . valueOf ( pos ) , value ) ; pos ++ ; } } } ) ; }
Inserts a {@link List} of {@link Bundlable} values, replacing any existing value for the
 given key.
Inserts a { @link List } of { @link Bundlable } values replacing any existing value for the given key .
// Using for-each as the provided list might not implement random access (e.g. it // might be a linked list).