Top Description Inners Fields Constructors Methods
org.jabref.logic.citationstyle

public Class CitationStyleCache

extends Object
Class Inheritance
Imports
java.util.Objects, org.jabref.logic.preview.PreviewLayout, org.jabref.model.database.BibDatabaseContext, org.jabref.model.database.event.EntriesRemovedEvent, org.jabref.model.entry.BibEntry, org.jabref.model.entry.event.EntryChangedEvent, com.google.common.cache.CacheBuilder, .CacheLoader, .LoadingCache, com.google.common.eventbus.Subscribe

Caches the generated Citations for quicker access CitationStyleGenerator generates the citation with JavaScript which may take some time

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final int
private PreviewLayout
private final LoadingCache<BibEntry, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getCitationFor(BibEntry entry)

Returns the citation for the given entry.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CACHE_SIZEback to summary
private static final int CACHE_SIZE
citationStyleback to summary
private PreviewLayout citationStyle
citationStyleCacheback to summary
private final LoadingCache<BibEntry, String> citationStyleCache

Constructor Detail

CitationStyleCacheback to summary
public CitationStyleCache(BibDatabaseContext databaseContext)

Method Detail

getCitationForback to summary
public String getCitationFor(BibEntry entry)

Returns the citation for the given entry.

setCitationStyleback to summary
public void setCitationStyle(PreviewLayout citationStyle)
org.jabref.logic.citationstyle back to summary

private Class CitationStyleCache.BibDatabaseEntryListener

extends Object
Class Inheritance
  • java.lang.Object
  • org.jabref.logic.citationstyle.CitationStyleCache.BibDatabaseEntryListener

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
listen(EntryChangedEvent entryChangedEvent)

removes the outdated citation of the changed entry

public void
listen(EntriesRemovedEvent entriesRemovedEvent)

removes the citation of the removed entries as they are not needed anymore

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BibDatabaseEntryListenerback to summary
private BibDatabaseEntryListener()

Method Detail

listenback to summary
public void listen(EntryChangedEvent entryChangedEvent)

removes the outdated citation of the changed entry

Annotations
@Subscribe
listenback to summary
public void listen(EntriesRemovedEvent entriesRemovedEvent)

removes the citation of the removed entries as they are not needed anymore

Annotations
@Subscribe