libtmux Reference MCP Search
On this page

io.github.libtmux.query.Selections.Selections.oneOrEmpty

View as Markdown

Module
io.github.libtmux.query.Selections
Declared in
Selections
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/query/Selections.java
oneOrEmpty ( matches : Iterable<T> ) Optional<T>
methodstatic [source]
methodstatic [source]
oneOrEmpty

The single match if there is one, empty if there is none — but still a failure for several.

<p>Returning the first of many would make a caller's ambiguous query look answered.

0 declared, 0 inherited

Esc

Type to search.