當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。