# Allocator.AllocationNode

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/upstream/Allocator.java+class:androidx.media3.exoplayer.upstream.Allocator.AllocationNode)

*** ** * ** ***


```
public interface Allocator.AllocationNode
```

<br />

*** ** * ** ***

A node in a chain of `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocation`.

## Summary

| ### Public methods |
|---|---|
| `abstract https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocation` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocator.AllocationNode#getAllocation()()` Returns the `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocation` associated to this chain node. |
| `abstract @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocator.AllocationNode` | `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocator.AllocationNode#next()()` Returns the next chain node, or `null` if this is the last node in the chain. |

## Public methods

### getAllocation

```
abstract Allocation getAllocation()
```

Returns the `https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocation` associated to this chain node.

### next

```
abstract @Nullable Allocator.AllocationNode next()
```

Returns the next chain node, or `null` if this is the last node in the chain.