本文整理汇总了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);