/** * Increments the value of an existing key by 1. * If the key doesn't exist, initialises the value to 1. * * @param key The key to increment or insert. */ public void upsert(final String key) { upsert(key, 1); } }
/** * Increments the value of an existing key by 1. * If the key doesn't exist, initialises the value to 1. * * @param key The key to increment or insert. */ public void upsert(final String key) { upsert(key, 1); } }