Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

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

Java
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

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.

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

0 declared, 0 inherited

Esc

Type to search.