# io.github.libtmux.kotlin.Batch

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Batch.kt#L11
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-batch/

```
public class Batch
```

Several tmux commands collected to run together in one invocation.

Holds the Java handle privately, so a member here always wins over a same-named catalog-generated
extension in `BatchOperations.kt`.

## Members

### Other members

- `add` (method): Adds one tmux command, its arguments already separate elements. Collected, not sent.
- `asJava` (property): The Java batch this wraps: the same object, for a Java API that takes one.
- `equals` (method)
- `hashCode` (method)
- `length` (method): How many bytes the collected operations come to as the one command tmux parses. A pure, local read.
- `run` (method): Runs every collected operation in one tmux invocation.
- `server` (property)
- `size` (method): How many operations have been collected. A pure, local read.
- `toString` (method)
