本文整理匯總了Java中org.eclipse.jdt.internal.core.util.LRUCache類的典型用法代碼示例。如果您正苦於以下問題:Java LRUCache類的具體用法?Java LRUCache怎麽用?Java LRUCache使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LRUCache類屬於org.eclipse.jdt.internal.core.util包,在下文中一共展示了LRUCache類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setClasspath
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
private ClasspathChange setClasspath(
IClasspathEntry[] newRawClasspath,
IClasspathEntry[] referencedEntries,
IPath newOutputLocation,
IJavaModelStatus newRawClasspathStatus,
IClasspathEntry[] newResolvedClasspath,
Map newRootPathToRawEntries,
Map newRootPathToResolvedEntries,
IJavaModelStatus newUnresolvedEntryStatus,
boolean addClasspathChange) {
ClasspathChange classpathChange = addClasspathChange ? addClasspathChange() : null;
if (referencedEntries != null) this.referencedEntries = referencedEntries;
if (this.referencedEntries == null) this.referencedEntries = ClasspathEntry.NO_ENTRIES;
this.rawClasspath = newRawClasspath;
this.outputLocation = newOutputLocation;
this.rawClasspathStatus = newRawClasspathStatus;
this.resolvedClasspath = newResolvedClasspath;
this.rootPathToRawEntries = newRootPathToRawEntries;
this.rootPathToResolvedEntries = newRootPathToResolvedEntries;
this.unresolvedEntryStatus = newUnresolvedEntryStatus;
this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
return classpathChange;
}
示例2: setClasspath
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
private ClasspathChange setClasspath(IClasspathEntry[] newRawClasspath, IClasspathEntry[] referencedEntries, IPath newOutputLocation, IJavaModelStatus newRawClasspathStatus, IClasspathEntry[] newResolvedClasspath, Map newRootPathToRawEntries, Map newRootPathToResolvedEntries, IJavaModelStatus newUnresolvedEntryStatus, boolean addClasspathChange) {
ClasspathChange classpathChange = addClasspathChange ? addClasspathChange() : null;
if (referencedEntries != null) this.referencedEntries = referencedEntries;
if (this.referencedEntries == null) this.referencedEntries = ClasspathEntry.NO_ENTRIES;
this.rawClasspath = newRawClasspath;
this.outputLocation = newOutputLocation;
this.rawClasspathStatus = newRawClasspathStatus;
this.resolvedClasspath = newResolvedClasspath;
this.rootPathToRawEntries = newRootPathToRawEntries;
this.rootPathToResolvedEntries = newRootPathToResolvedEntries;
this.unresolvedEntryStatus = newUnresolvedEntryStatus;
this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
return classpathChange;
}
示例3: PerProjectInfo
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
public PerProjectInfo(IProject project) {
this.triedRead = false;
this.savedState = null;
this.project = project;
this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
}
示例4: PerProjectInfo
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
public PerProjectInfo(IProject project) {
this.triedRead = false;
this.savedState = null;
this.project = project;
this.javadocCache = new LRUCache(JAVADOC_CACHE_INITIAL_SIZE);
}
示例5: newInstance
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
/**
* Returns a new instance of the reciever.
*/
protected LRUCache newInstance(int size, int newOverflow) {
return new BufferCache(size, newOverflow);
}
示例6: resetJarTypeCache
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
protected void resetJarTypeCache() {
this.jarTypeCache = new LRUCache((int) (DEFAULT_OPENABLE_SIZE * getMemoryRatio() * getJarTypeRatio()));
}
示例7: newInstance
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
protected LRUCache newInstance(int size, int newOverflow) {
return new ElementCache(size, newOverflow);
}
示例8: newInstance
import org.eclipse.jdt.internal.core.util.LRUCache; //導入依賴的package包/類
/**
* Returns a new instance of the reciever.
*/
protected abstract LRUCache newInstance(int size, int newOverflow);