Toggle
This class is a wrapper class for booleans, but it allows you to negate the boolean by pressing a button. The intended use case is that there is some boolean value used in an OpMode, and you want it to change every time you press a specific button on the gamepad. Make that boolean a Toggle and call toggle(boolean) every cycle using the desired button as the input to toggle()