/** * Removes the mapping for a key from this map if it is present in a top level. * * <p>Returns the value to which this map previously associated the key, * or <tt>null</tt> if the map contained no mapping for the key. * @param key the key whose mapping is to be removed from the map * @return the previous value associated with <tt>key</tt>, or * <tt>null</tt> if there was no mapping for <tt>key</tt>. */ @Override public Object remove(final Object key) { return removeFrom(getTopSelf(), key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }
/** * Removes the mapping for a key from this map if it is present in a top level. * * <p>Returns the value to which this map previously associated the key, * or <tt>null</tt> if the map contained no mapping for the key. * @param key the key whose mapping is to be removed from the map * @return the previous value associated with <tt>key</tt>, or * <tt>null</tt> if there was no mapping for <tt>key</tt>. */ @Override public Object remove(final Object key) { return removeFrom(getTopSelf(), key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }
/** * Removes the specified Ruby variable with the specified variable name in a * variable map and given receiver. If the map previously contained a mapping for the key, * the old value is returned. The key must be a valid Ruby variable name. * This is a short cut method of ScriptingContainer#getVarMap().remove(key). * * @param receiver a receiver to remove the value from * @param key is a key that the specified value is to be associated with * @return a previous value associated with a key, or null if there was * no mapping for this key. */ public Object remove(Object receiver, String key) { return provider.getVarMap().removeFrom(receiver, key); }
/** * Removes the mapping for a key from this map if it is present in a top level. * * <p>Returns the value to which this map previously associated the key, * or <tt>null</tt> if the map contained no mapping for the key. * @param key the key whose mapping is to be removed from the map * @return the previous value associated with <tt>key</tt>, or * <tt>null</tt> if there was no mapping for <tt>key</tt>. */ public V remove(Object key) { return removeFrom(provider.getRuntime().getTopSelf(), key); }
/** * Removes the mapping for a key from this map if it is present in a top level. * * <p>Returns the value to which this map previously associated the key, * or <tt>null</tt> if the map contained no mapping for the key. * @param key the key whose mapping is to be removed from the map * @return the previous value associated with <tt>key</tt>, or * <tt>null</tt> if there was no mapping for <tt>key</tt>. */ public V remove(Object key) { return removeFrom(provider.getRuntime().getTopSelf(), key); }