当前位置: 首页>>代码示例>>Java>>正文


Java LRUCache类代码示例

本文整理汇总了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;
}
 
开发者ID:eclipse,项目名称:che,代码行数:26,代码来源:JavaModelManager.java

示例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;
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:17,代码来源:JavaModelManager.java

示例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);
    }
 
开发者ID:eclipse,项目名称:che,代码行数:8,代码来源:JavaModelManager.java

示例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);
		}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:8,代码来源:JavaModelManager.java

示例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);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:7,代码来源:BufferCache.java

示例6: resetJarTypeCache

import org.eclipse.jdt.internal.core.util.LRUCache; //导入依赖的package包/类
protected void resetJarTypeCache() {
	this.jarTypeCache = new LRUCache((int) (DEFAULT_OPENABLE_SIZE * getMemoryRatio() * getJarTypeRatio()));
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:JavaModelCache.java

示例7: newInstance

import org.eclipse.jdt.internal.core.util.LRUCache; //导入依赖的package包/类
protected LRUCache newInstance(int size, int newOverflow) {
	return new ElementCache(size, newOverflow);
}
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:4,代码来源:ElementCache.java

示例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);
 
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion,代码行数:5,代码来源:OverflowingLRUCache.java


注:本文中的org.eclipse.jdt.internal.core.util.LRUCache类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。