blob: e266a5924cee4778ebeef7197ce9551dfca137ea [file]
<html devsite="true">
<head>
<title>AdjacentItems</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div itemscope="" itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="AdjacentItems">
<meta itemprop="path" content="androidx.paging">
<meta itemprop="property" content="getAfter()">
<meta itemprop="property" content="getBefore()">
<meta itemprop="language" content="JAVA">
</div>
<div id="header-block">
<div>
<h1>AdjacentItems</h1>
</div>
<div id="metadata-info-block">
<div id="source-link"><a href="https://cs.android.com/search?q=file:androidx/paging/ListenableFuturePagingData.kt+class:androidx.paging.AdjacentItems&amp;ss=androidx/platform/frameworks/support" class="external">View Source</a></div>
</div>
</div>
<div id="refdoc-switcher-placeholder"></div>
<p>
<pre>public final class <a href="/reference/androidx/paging/AdjacentItems.html">AdjacentItems</a>&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt;</pre>
</p>
<hr>
<p>Represents a pair of adjacent items, null values are used to signal boundary conditions.</p>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public constructors</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td>
<div><code>&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; <a href="/reference/androidx/paging/AdjacentItems.html#AdjacentItems(kotlin.Any,kotlin.Any)">AdjacentItems</a>(T&nbsp;before,&nbsp;T&nbsp;after)</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public methods</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code>final T</code></td>
<td>
<div><code><a href="/reference/androidx/paging/AdjacentItems.html#getAfter()">getAfter</a>()</code></div>
</td>
</tr>
<tr>
<td><code>final T</code></td>
<td>
<div><code><a href="/reference/androidx/paging/AdjacentItems.html#getBefore()">getBefore</a>()</code></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="list">
<h2>Public constructors</h2>
<div class="api-item"><a name="AdjacentItems(kotlin.Any, kotlin.Any)"></a><a name="AdjacentItems-kotlin.Any-kotlin.Any-"></a><a name="adjacentitems"></a>
<div class="api-name-block">
<div>
<h3 id="AdjacentItems(kotlin.Any,kotlin.Any)">AdjacentItems</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;&lt;T&nbsp;extends&nbsp;<a href="https://developer.android.com/reference/java/lang/Object.html">Object</a>&gt; <a href="/reference/androidx/paging/AdjacentItems.html#AdjacentItems(kotlin.Any,kotlin.Any)">AdjacentItems</a>(T&nbsp;before,&nbsp;T&nbsp;after)</pre>
</div>
</div>
<div class="list">
<h2>Public methods</h2>
<div class="api-item"><a name="getAfter--"></a><a name="getafter"></a>
<div class="api-name-block">
<div>
<h3 id="getAfter()">getAfter</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;T&nbsp;<a href="/reference/androidx/paging/AdjacentItems.html#getAfter()">getAfter</a>()</pre>
</div>
<div class="api-item"><a name="getBefore--"></a><a name="getbefore"></a>
<div class="api-name-block">
<div>
<h3 id="getBefore()">getBefore</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">public&nbsp;final&nbsp;T&nbsp;<a href="/reference/androidx/paging/AdjacentItems.html#getBefore()">getBefore</a>()</pre>
</div>
</div>
</body>
</html>