# io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of

- **Module:** io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-java/blob/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/snapshot/ServerSnapshot.java#L78
- **Page:** https://libtmux.org/reference/java/io-github-libtmux-snapshot-serversnapshot-serversnapshot-of/

```
io.github.libtmux.snapshot.ServerSnapshot.ServerSnapshot.of(capturedAt: Instant, sessions: List<SessionState>, windows: List<WindowState>, panes: List<PaneState>, clients: List<ClientState>) -> ServerSnapshot
```

Assembles a capture, checking that the listings agree with each other.

## Raises

- `IllegalArgumentException` — if the listings contain duplicate identities or disagree on the captured hierarchy
