concept boolean in category quantum computing

appears as: boole
Quantum Computing for Developers: A Java-based introduction

This is an excerpt from Manning's book Quantum Computing for Developers: A Java-based introduction.

We can show this with some Java code. First, let’s assume you use a classical computer with a single bit, and you apply a function to that bit. You will use the boolean type as this is the Java primitive type that can hold 2 values: false and true, corresponding to 0 and 1.

Listing 10.3. Creating the function
Function<Person, Integer> f29Mexico                                       #1
   = (Person p) ->                                                        #2
       ((p.getAge() == 29) && (p.getCountry().equals("Mexico"))) ? 1 : 0; #3