@Override @SuppressWarnings("unchecked") public V put(SpatialKey key, V value) { return (V) putOrAdd(key, value, false); }
/** * Add a given key-value pair. The key should not exist (if it exists, the * result is undefined). * * @param key the key * @param value the value */ public void add(SpatialKey key, V value) { putOrAdd(key, value, true); }
/** * Add a given key-value pair. The key should not exist (if it exists, the * result is undefined). * * @param key the key * @param value the value */ public void add(SpatialKey key, V value) { putOrAdd(key, value, true); }
@Override @SuppressWarnings("unchecked") public V put(SpatialKey key, V value) { return (V) putOrAdd(key, value, false); }
/** * Add a given key-value pair. The key should not exist (if it exists, the * result is undefined). * * @param key the key * @param value the value */ public void add(SpatialKey key, V value) { putOrAdd(key, value, true); }
@Override @SuppressWarnings("unchecked") public V put(SpatialKey key, V value) { return (V) putOrAdd(key, value, false); }
/** * Add a given key-value pair. The key should not exist (if it exists, the * result is undefined). * * @param key the key * @param value the value */ public void add(SpatialKey key, V value) { putOrAdd(key, value, true); }
@Override @SuppressWarnings("unchecked") public V put(SpatialKey key, V value) { return (V) putOrAdd(key, value, false); }