Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TriState toBoolean helper methods #472

Merged
merged 1 commit into from Oct 16, 2021

Commits on Oct 8, 2021

  1. Add TriState toBoolean helper methods

    While the TriState enum already has helper methods to quickly convert a
    boolean into a TriState (both nullable wrappers and their primitive
    counterparts), helper methods to convert a TriState back into a boolean
    representation are currently missing.
    
    This commit introduces two methods that do exactly that, one
    allowing a straight forward conversion to a Boolean as it can represent
    a TriState through its nullability as well as another method that
    discards the TriState#NOT_SET by accepting a supplier that will be
    used to map a not set tri-state.
    lynxplay committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    b1550bf View commit details
    Browse the repository at this point in the history