/** * 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; }
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);
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);
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);
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);
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); backpressureNeeded = isBackPressureNeeded();
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); backpressureNeeded = isBackPressureNeeded();