private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
private void removeInternal(BundleFile bundleFile) { int index = bundleFile.getMruIndex(); bundleFile.setMruIndex(-1); bundleFileList[index] = null; useStampList[index] = -1; numOpen--; }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
/** * Increments the use stamp of a bundle file * @param bundleFile the bundle file to increment the use stamp for */ public void use(BundleFile bundleFile) { if (fileLimit < MIN) return; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) incUseStamp(index); } }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
/** * Removes a bundle file which is about to be closed * @param bundleFile the bundle file about to be closed * @return true if the bundleFile existed in the MRU; false otherwise */ public boolean remove(BundleFile bundleFile) { if (fileLimit < MIN) return false; // MRU is disabled synchronized (this) { int index = bundleFile.getMruIndex(); if ((index >= 0 && index < fileLimit) && bundleFileList[index] == bundleFile) { removeInternal(bundleFile); return true; } } return false; }
EventManager manager = null; synchronized (this) { if (bundleFile.getMruIndex() >= 0) return; // do nothing; someone is trying add a bundleFile that is already in an MRU list int index = 0; // default to the first slot index = i; toRemove = bundleFileList[index]; if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove);
EventManager manager = null; synchronized (this) { if (bundleFile.getMruIndex() >= 0) return; // do nothing; someone is trying add a bundleFile that is already in an MRU list int index = 0; // default to the first slot index = i; toRemove = bundleFileList[index]; if (toRemove.getMruIndex() != index) throw new IllegalStateException("The BundleFile has the incorrect mru index: " + index + " != " + toRemove.getMruIndex()); //$NON-NLS-1$//$NON-NLS-2$ removeInternal(toRemove);