Code example for AtomicLong

Methods: incrementAndGet

0
        // nothing to do 
    } 
 
    @Override 
    public Long nextNumber() {
        return number.incrementAndGet();
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java