Home > Contents > Index >
ISynchHash.remove
Removes an item from the hash and synchronizes the cluster as needed.
Syntax
public Object remove(String key)Parameters
key
- The key of the object to remove.
Description
The
remove
method removes an item from the hash and synchronizes the cluster as needed. Note that it is more efficient to use theclear
()
method to remove a hash then to remove all entries one by one; the first iteration of the loop has little performance cost, but subsequent iterations have the additional performance cost of cluster synchronization, which can be very high.Returns
Returns the object;
null
if not found.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.