Пример #1
0
  /**
   * Removes the entry with the given string.
   *
   * <p>Returns null if not found.
   */
  public synchronized BibtexEntry removeEntry(String id) {
    BibtexEntry oldValue = _entries.remove(id);

    if (oldValue == null) return null;

    removeKeyFromSet(oldValue.getCiteKey());
    oldValue.removePropertyChangeListener(listener);
    fireDatabaseChanged(
        new DatabaseChangeEvent(this, DatabaseChangeEvent.ChangeType.REMOVED_ENTRY, oldValue));

    return oldValue;
  }