Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Nov 7, 2024
1 parent 5cbc9d3 commit 642ae33
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ public OptionalInt getTagAsInt(String tag, Consumer<String> errorHandler) {

/**
* Some tags are allowed to have values like 55, "true" or "false".
* <p>
* "true", "yes" is returned as 1.
* <p>
* "false", "no" is returned as 0
* <p>
* Everything else is returned as an emtpy optional.
*/
public OptionalInt parseIntOrBoolean(String tag, Consumer<String> errorHandler) {
var maybeInt = getTagAsInt(tag, errorHandler);
Expand Down

0 comments on commit 642ae33

Please sign in to comment.