Code example for AtomicInteger

Methods: getAndIncrement

0
    public void setAskBeforeQuit(boolean value) {
        set("askBeforeQuit", value);
    } 
 
    public int nextInt() { 
        return next.getAndIncrement();
    } 
     
    private static final String[] IMG_FMTS = {"PNG", "JPG"};
    public String[] getImageFormats() {
        return IMG_FMTS;
    } 
     
    public String   getImageFormat() {
        return applicationPreferences.get("imageFormat", "PNG");
    } 
 
    public void setImageFormat(String value) {
        set("imageFormat", value);
    }