/** * Atomically adds an object to the end of the array associated with a given key. * * @param key The key. * @param value The object to add. */ public void add(String key, Object value) { this.addObjectToArray(key, value, false); }
/** * Atomically adds an object to the end of the array associated with a given key. * * @param key The key. * @param value The object to add. */ public void add(String key, Object value) { this.addObjectToArray(key, value, false); }
/** * Atomically adds the objects contained in a Collection to the end of the array associated with a * given key. * * @param key The key. * @param values The objects to add. */ public void addAll(String key, Collection<?> values) { for (Object item : values) { this.addObjectToArray(key, item, false); } }
/** * Atomically adds the objects contained in a Collection to the end of the array associated with a * given key. * * @param key The key. * @param values The objects to add. */ public void addAll(String key, Collection<?> values) { for (Object item : values) { this.addObjectToArray(key, item, false); } }
/** * Atomically adds an object to the array associated with a given key, only if it is not already * present in the array. The position of the insert is not guaranteed. * * @param key The key. * @param value The object to add. */ public void addUnique(String key, Object value) { this.addObjectToArray(key, value, true); }
/** * Atomically adds an object to the array associated with a given key, only if it is not already * present in the array. The position of the insert is not guaranteed. * * @param key The key. * @param value The object to add. */ public void addUnique(String key, Object value) { this.addObjectToArray(key, value, true); }
/** * Atomically adds the objects contained in a Collection to the array associated with a given key, * only adding elements which are not already present in the array. The position of the insert is * not guaranteed. * * @param key The key. * @param values The objects to add. */ public void addAllUnique(String key, Collection<?> values) { for (Object item : values) { this.addObjectToArray(key, item, true); } }
/** * Atomically adds the objects contained in a Collection to the array associated with a given key, * only adding elements which are not already present in the array. The position of the insert is * not guaranteed. * * @param key The key. * @param values The objects to add. */ public void addAllUnique(String key, Collection<?> values) { for (Object item : values) { this.addObjectToArray(key, item, true); } }