Code example for Set

Methods: isEmpty

0
        stopping = true;
        maybeStop(); 
    } 
 
    private void maybeStop() { 
        if (connections.isEmpty()) {
            outgoingQueue.discardQueued();
            incomingQueue.queue(new EndOfStream());
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java