media/docs/doc/reference/com/google/android/exoplayer2/util/BundleableUtil.html
tonihei 468e4aa0c4 Update Javadoc for 2.16.0
PiperOrigin-RevId: 407379522
2021-11-04 01:03:22 +00:00

453 lines
41 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>BundleableUtil (ExoPlayer library)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="BundleableUtil (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.google.android.exoplayer2.util</a></div>
<h2 title="Class BundleableUtil" class="title">Class BundleableUtil</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>com.google.android.exoplayer2.util.BundleableUtil</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public final class <span class="typeNameLabel">BundleableUtil</span>
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></pre>
<div class="block">Utilities for <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a>.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ensureClassLoader(android.os.Bundle)">ensureClassLoader</a></span>&#8203;(<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle)</code></th>
<td class="colLast">
<div class="block">Sets the application class loader to the given <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> if no class loader is present.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromBundleList(com.google.android.exoplayer2.Bundleable.Creator,java.util.List)">fromBundleList</a></span>&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleList)</code></th>
<td class="colLast">
<div class="block">Converts a list of <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromBundleNullableList(com.google.android.exoplayer2.Bundleable.Creator,java.util.List,java.util.List)">fromBundleNullableList</a></span>&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleList,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;T&gt;&nbsp;defaultValue)</code></th>
<td class="colLast">
<div class="block">Converts a list of <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink" target="_top">SparseArray</a>&lt;T&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromBundleNullableSparseArray(com.google.android.exoplayer2.Bundleable.Creator,android.util.SparseArray,android.util.SparseArray)">fromBundleNullableSparseArray</a></span>&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink">SparseArray</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleSparseArray,
<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink" target="_top">SparseArray</a>&lt;T&gt;&nbsp;defaultValue)</code></th>
<td class="colLast">
<div class="block">Converts a <a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br>T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromNullableBundle(com.google.android.exoplayer2.Bundleable.Creator,android.os.Bundle)">fromNullableBundle</a></span>&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle)</code></th>
<td class="colLast">
<div class="block">Converts a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br>T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromNullableBundle(com.google.android.exoplayer2.Bundleable.Creator,android.os.Bundle,T)">fromNullableBundle</a></span>&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle,
T&nbsp;defaultValue)</code></th>
<td class="colLast">
<div class="block">Converts a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://developer.android.com/reference/java/util/ArrayList.html" title="class or interface in java.util" class="externalLink">ArrayList</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundleArrayList(java.util.Collection)">toBundleArrayList</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/Collection.html" title="class or interface in java.util" class="externalLink" target="_top">Collection</a>&lt;T&gt;&nbsp;bundleables)</code></th>
<td class="colLast">
<div class="block">Converts a collection of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to an <a href="https://developer.android.com/reference/java/util/ArrayList.html" title="class or interface in java.util" class="externalLink"><code>ArrayList</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> so that
the returned list can be put to <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> using <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true#putParcelableArrayList(java.lang.String,java.util.ArrayList)" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle.putParcelableArrayList(java.lang.String, java.util.ArrayList&lt;? extends android.os.Parcelable&gt;)</code></a>
conveniently.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundleList(java.util.List)">toBundleList</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;T&gt;&nbsp;bundleableList)</code></th>
<td class="colLast">
<div class="block">Converts a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to a list <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static &lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;<br><a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink">SparseArray</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundleSparseArray(android.util.SparseArray)">toBundleSparseArray</a></span>&#8203;(<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink" target="_top">SparseArray</a>&lt;T&gt;&nbsp;bundleableSparseArray)</code></th>
<td class="colLast">
<div class="block">Converts a <a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to an <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> so that the returned <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> can be put to <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> using <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true#putSparseParcelableArray(java.lang.String,android.util.SparseArray)" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle.putSparseParcelableArray(java.lang.String, android.util.SparseArray&lt;? extends android.os.Parcelable&gt;)</code></a> conveniently.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toNullableBundle(com.google.android.exoplayer2.Bundleable)">toNullableBundle</a></span>&#8203;(<a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&nbsp;bundleable)</code></th>
<td class="colLast">
<div class="block">Converts a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="toNullableBundle(com.google.android.exoplayer2.Bundleable)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toNullableBundle</h4>
<pre class="methodSignature">@Nullable
public static&nbsp;<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;toNullableBundle&#8203;(@Nullable
<a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&nbsp;bundleable)</pre>
<div class="block">Converts a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a>. It's a convenience wrapper of <a href="../Bundleable.html#toBundle()" target="_top"><code>Bundleable.toBundle()</code></a> that can take nullable values.</div>
</li>
</ul>
<a id="fromNullableBundle(com.google.android.exoplayer2.Bundleable.Creator,android.os.Bundle)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromNullableBundle</h4>
<pre class="methodSignature">@Nullable
public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;T&nbsp;fromNullableBundle&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
@Nullable
<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle)</pre>
<div class="block">Converts a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a>. It's a convenience wrapper of <a href="../Bundleable.Creator.html#fromBundle(android.os.Bundle)" target="_top"><code>Bundleable.Creator.fromBundle(android.os.Bundle)</code></a> that can take nullable values.</div>
</li>
</ul>
<a id="fromNullableBundle(com.google.android.exoplayer2.Bundleable.Creator,android.os.Bundle,com.google.android.exoplayer2.Bundleable)">
<!-- -->
</a><a id="fromNullableBundle(com.google.android.exoplayer2.Bundleable.Creator,android.os.Bundle,T)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromNullableBundle</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;T&nbsp;fromNullableBundle&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
@Nullable
<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle,
T&nbsp;defaultValue)</pre>
<div class="block">Converts a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a>. It's a convenience wrapper of <a href="../Bundleable.Creator.html#fromBundle(android.os.Bundle)" target="_top"><code>Bundleable.Creator.fromBundle(android.os.Bundle)</code></a> that provides default value to ensure non-null.</div>
</li>
</ul>
<a id="toBundleList(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBundleList</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink">Bundle</a>&gt;&nbsp;toBundleList&#8203;(<a href="https://developer.android.com/reference/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;T&gt;&nbsp;bundleableList)</pre>
<div class="block">Converts a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to a list <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
</li>
</ul>
<a id="fromBundleList(com.google.android.exoplayer2.Bundleable.Creator,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromBundleList</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a>&lt;T&gt;&nbsp;fromBundleList&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleList)</pre>
<div class="block">Converts a list of <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>.</div>
</li>
</ul>
<a id="fromBundleNullableList(com.google.android.exoplayer2.Bundleable.Creator,java.util.List,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromBundleNullableList</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;T&gt;&nbsp;fromBundleNullableList&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2" target="_top">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
@Nullable
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleList,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink" target="_top">List</a>&lt;T&gt;&nbsp;defaultValue)</pre>
<div class="block">Converts a list of <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a list of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>. Returns <code>defaultValue</code>
if <code>bundleList</code> is null.</div>
</li>
</ul>
<a id="fromBundleNullableSparseArray(com.google.android.exoplayer2.Bundleable.Creator,android.util.SparseArray,android.util.SparseArray)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromBundleNullableSparseArray</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink">SparseArray</a>&lt;T&gt;&nbsp;fromBundleNullableSparseArray&#8203;(<a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2" target="_top">Bundleable.Creator</a>&lt;T&gt;&nbsp;creator,
@Nullable
<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink">SparseArray</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&gt;&nbsp;bundleSparseArray,
<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink" target="_top">SparseArray</a>&lt;T&gt;&nbsp;defaultValue)</pre>
<div class="block">Converts a <a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> to a <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2" target="_top"><code>Bundleable</code></a>. Returns <code>defaultValue</code> if <code>bundleSparseArray</code> is null.</div>
</li>
</ul>
<a id="toBundleArrayList(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBundleArrayList</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://developer.android.com/reference/java/util/ArrayList.html" title="class or interface in java.util" class="externalLink">ArrayList</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink">Bundle</a>&gt;&nbsp;toBundleArrayList&#8203;(<a href="https://developer.android.com/reference/java/util/Collection.html?is-external=true" title="class or interface in java.util" class="externalLink" target="_top">Collection</a>&lt;T&gt;&nbsp;bundleables)</pre>
<div class="block">Converts a collection of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to an <a href="https://developer.android.com/reference/java/util/ArrayList.html" title="class or interface in java.util" class="externalLink"><code>ArrayList</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> so that
the returned list can be put to <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> using <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true#putParcelableArrayList(java.lang.String,java.util.ArrayList)" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle.putParcelableArrayList(java.lang.String, java.util.ArrayList&lt;? extends android.os.Parcelable&gt;)</code></a>
conveniently.</div>
</li>
</ul>
<a id="toBundleSparseArray(android.util.SparseArray)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toBundleSparseArray</h4>
<pre class="methodSignature">public static&nbsp;&lt;T extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>&gt;&nbsp;<a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink">SparseArray</a>&lt;<a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink">Bundle</a>&gt;&nbsp;toBundleSparseArray&#8203;(<a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink" target="_top">SparseArray</a>&lt;T&gt;&nbsp;bundleableSparseArray)</pre>
<div class="block">Converts a <a href="https://developer.android.com/reference/android/util/SparseArray.html" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2"><code>Bundleable</code></a> to an <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> of <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> so that the returned <a href="https://developer.android.com/reference/android/util/SparseArray.html?is-external=true" title="class or interface in android.util" class="externalLink"><code>SparseArray</code></a> can be put to <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true" title="class or interface in android.os" class="externalLink"><code>Bundle</code></a> using <a href="https://developer.android.com/reference/android/os/Bundle.html?is-external=true#putSparseParcelableArray(java.lang.String,android.util.SparseArray)" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle.putSparseParcelableArray(java.lang.String, android.util.SparseArray&lt;? extends android.os.Parcelable&gt;)</code></a> conveniently.</div>
</li>
</ul>
<a id="ensureClassLoader(android.os.Bundle)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ensureClassLoader</h4>
<pre class="methodSignature">public static&nbsp;void&nbsp;ensureClassLoader&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a>&nbsp;bundle)</pre>
<div class="block">Sets the application class loader to the given <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> if no class loader is present.
<p>This assumes that all classes unparceled from <code>bundle</code> are sharing the class loader of
<code>BundleableUtils</code>.</div>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>