[java] Cleanest way to toggle a boolean variable in Java?