core/src/main/java/com/orientechnologies/common/collection/closabledictionary/OClosableLinkedContainer.java
public V remove(K key) {
    final OClosableEntry<K, V> removed = data.remove(key);

    if (removed != null) {
      long preStatus = removed.makeRetired();

      if (OClosableEntry.isOpen(preStatus)) {
        countClosedFiles();
      }

      logRemoved(removed);
      return removed.get();
    }

    return null;
  }
public V remove(K key) {
    final OClosableEntry<K, V> removed = data.remove(key);

    if (removed != null) {
      long preStatus = removed.makeRetired();

      if (OClosableEntry.isOpen(preStatus)) {
        countClosedFiles();
      }

      logRemoved(removed);
      return removed.get();
    }

    return null;
  }
public V remove ( K key ) { final OClosableEntry < K , V > removed = data . remove ( key ) ; if ( removed != null ) { long preStatus = removed . makeRetired ( ) ; if ( OClosableEntry . isOpen ( preStatus ) ) { countClosedFiles ( ) ; } logRemoved ( removed ) ; return removed . get ( ) ; } return null ; }
Removes item associated with passed in key.

@param key Key associated with item to remove.

@return Removed item.
Removes item associated with passed in key .