On this page
io.github.libtmux.query.Selections.Selections
- Module
- io.github.libtmux.query.Selections
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/query/Selections.java
-
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.
findFirststays onjava.util.stream.Streamwhere 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.