I've created an enum class Proposition with three possible constants,
public enum Proposition {
TRUE, FALSE, NULL;
}
and I'd like to make it so that, when I write code using Boolean operators
Proposition propA = Proposition.FALSE;
Proposition propB = Proposition.NULL;
Proposition propC = propA && propB;
propC would become NULL, following Kleene's logic. https://en.wikipedia.org/wiki/Three-valued_logic
How would I implement that in Java? Do I HAVE to use a method or can I use Boolean operators?