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

io.github.libtmux.Options.Options.setIfAbsent

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.Options
Declared in
Options
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Options.java
setIfAbsent ( name : String , value : String ) → boolean
method [source]
method [source]
setIfAbsent

Sets one option only if this scope does not already set it.

tmux reports the already-set case as an error, which it is not: declining to overwrite is the whole point of asking. The answer comes back as a value instead.

Returns

whether the value was taken, false when this scope already set the option

0 declared, 0 inherited

Esc

Type to search.