# Allocator.AllocationNode

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/upstream/Allocator.AllocationNode "View this page in Java")

<br />

```
interface Allocator.AllocationNode
```

<br />

*** ** * ** ***

A node in a chain of[Allocations](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocation).

## Summary

|                                                           ### Public functions                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Allocation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocation)`!`                             | [getAllocation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocator.AllocationNode#getAllocation())`()` Returns the[Allocation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocation)associated to this chain node. |
| [Allocator.AllocationNode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocator.AllocationNode)`?` | [next](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocator.AllocationNode#next())`()` Returns the next chain node, or`null`if this is the last node in the chain.                                                                                           |

## Public functions

### getAllocation

```
fun getAllocation(): Allocation!
```

Returns the[Allocation](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/Allocation)associated to this chain node.  

### next

```
fun next(): Allocator.AllocationNode?
```

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