Is the Compressor Automatically Handled? (Java)

Is the compressor automatically handled as its own class? or do we have to use if !compressorswitch { compressor.Relayset(true) } etc.

The compressor is automatically handled. After initializing your compressor, simply call

compressor.start()

and it will automatically start and shut off based on the pressure switch.