libtmux Reference MCP Search
On this page

io.github.libtmux.query.Selections.Selections

View as Markdown

Module
io.github.libtmux.query.Selections
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/query/Selections.java
class io.github.libtmux.query.Selections.Selections
classreadonly [source]
classreadonly [source]
class io.github.libtmux.query.Selections.Selections

Cardinality with the ambiguity removed.

<p>"No session matched" and "several sessions matched" are different bugs in a caller's code, so they get different exceptions. findFirst stays on java.util.stream.Stream where it already belongs; only the strict shapes need helpers.

4 declared, 0 inherited

Members

  • MultipleMatchesException class Several things matched where the caller required at most one.
  • NoMatchException class Nothing matched where the caller required something.
  • exactlyOne method The single match, or a failure naming which way the count was wrong.
  • oneOrEmpty method The single match if there is one, empty if there is none — but still a failure for several.
Esc

Type to search.