@Override public void save(final S entry) { if (entry == null) return; super.save(entry); entries.put( entry.getName(), ChatHelper.listingString(DATASEPARATOR, entry.saveToFlatDatabase()) + LINESEPERATOR); asyncSaveDatabase(); }
@Override public void saveAll(final Collection<S> entries) { for (final S entry : entries) { super.save(entry); this.entries.put( entry.getName(), ChatHelper.listingString(DATASEPARATOR, entry.saveToFlatDatabase()) + LINESEPERATOR); } asyncSaveDatabase(); }