public boolean removeSchedulerListener (final ISchedulerListener schedulerListener) { synchronized (m_aSchedulerListeners) { return m_aSchedulerListeners.remove (schedulerListener); } }
public boolean removeNoGCObject (final Object obj) { return holdToPreventGC.remove (obj); }
public boolean removeListener (final ISchedulerListener listener) { return m_aListeners.remove (listener); }
public boolean removeListener (final ITriggerListener listener) { return m_aListeners.remove (listener); }
/** * <p> * Remove the given <code>{@link ISchedulerListener}</code> from the * <code>Scheduler</code>'s list of internal listeners. * </p> * * @return true if the identified listener was found in the list, and removed. */ public boolean removeInternalSchedulerListener (final ISchedulerListener schedulerListener) { synchronized (m_aInternalSchedulerListeners) { return m_aInternalSchedulerListeners.remove (schedulerListener); } }
@Nonnull public JSArray remove (@Nonnegative final int nIndex) { if (m_aExprs != null) m_aExprs.remove (nIndex); return this; }
@Nonnull public EChange remove (final int nIndex) { if (nIndex < 0 || nIndex >= m_aElements.size ()) return EChange.UNCHANGED; final String sValue = m_aElements.remove (nIndex); if (sValue != null && sValue.startsWith (OPEN_DIV)) m_nOpenDivs--; return EChange.CHANGED; }
@Nonnull public EChange removeSelector (@Nonnegative final int nIndex) { return EChange.valueOf (m_aElements.remove (nIndex) != null); }
@Nonnull public EChange removeSelector (@Nonnegative final IJQuerySelector aSelector) { return EChange.valueOf (m_aElements.remove (aSelector)); }
/** * Removes a declaration from this package. * * @param sName * Name to remove * @return Never <code>null</code>. */ @Nonnull public EChange removeByName (final String sName) { final IJSDeclaration aDecl = m_aDecls.remove (sName); if (aDecl == null) return EChange.UNCHANGED; m_aObjs.remove (aDecl); return EChange.CHANGED; }
@Nonnull public final EChange removeChild (@Nullable final KEYTYPE aDataID) { if (aDataID == null) return EChange.UNCHANGED; // Any children present if (m_aChildMap == null) return EChange.UNCHANGED; // Main removal final ITEMTYPE aItem = m_aChildMap.remove (aDataID); if (aItem == null) return EChange.UNCHANGED; if (!m_aChildren.remove (aItem)) throw new IllegalStateException ("Failed to remove item from list: " + aItem); // Notify factory _recursiveRemoveFromFactory (aItem); return EChange.CHANGED; }
@Override @Nonnull protected final EChange onRemoveChild (@Nonnull final IMicroNode aChildNode) { if (!aChildNode.hasParent ()) throw new MicroException ("The passed child node to be removed has no parent!"); if (m_aChildren == null || !m_aChildren.remove (aChildNode)) return EChange.UNCHANGED; _afterRemoveChildOfThis (aChildNode); return EChange.CHANGED; }
@Nonnull public EChange removeListeners (@Nullable final Class <? extends EventListener> aListenerClass) { if (aListenerClass == null) return EChange.UNCHANGED; return m_aRWLock.writeLocked ( () -> { EChange ret = EChange.UNCHANGED; // Create a copy of the list for (final EventListener aListener : m_aListener.getClone ()) if (aListener.getClass ().equals (aListenerClass)) ret = ret.or (EChange.valueOf (m_aListener.remove (aListener))); return ret; }); }
@Nonnull public EChange removeItem (@Nonnull final ICSSPathProvider aCSSPathProvider) { ValueEnforcer.notNull (aCSSPathProvider, "CSSPathProvider"); return m_aRWLock.writeLocked ( () -> { if (!m_aItems.remove (aCSSPathProvider)) return EChange.UNCHANGED; m_aList.remove (aCSSPathProvider); if (m_bIsCollected) _collectWarn ("Removed item " + aCSSPathProvider + " after collection!"); return EChange.CHANGED; }); }
@Nonnull public EChange removeItem (@Nonnull final IJSPathProvider aJSPathProvider) { ValueEnforcer.notNull (aJSPathProvider, "JSPathProvider"); return m_aRWLock.writeLocked ( () -> { if (!m_aItems.remove (aJSPathProvider)) return EChange.UNCHANGED; m_aList.remove (aJSPathProvider); if (m_bIsCollected) _collectWarn ("Removed item " + aJSPathProvider + " after collection!"); return EChange.CHANGED; }); }
public IMicroNode next () { if (m_aOpen.isEmpty ()) throw new NoSuchElementException (); final IMicroNode ret = m_aOpen.remove (0); if (ret.hasChildren ()) m_aOpen.addAll (0, ret.getAllChildren ()); return ret; } }
@Override @Nonnull protected final EChange onRemoveChildAtIndex (@Nonnegative final int nIndex) { // Resolve index - may be invalid final IMicroNode aChildNode = getChildAtIndex (nIndex); if (aChildNode == null) return EChange.UNCHANGED; if (!aChildNode.hasParent ()) throw new MicroException ("Internal inconsistency: the passed child node to be removed has no parent!"); // Main removal if (m_aChildren.remove (nIndex) != aChildNode) throw new MicroException ("Internal inconsistency: remove resulted in an illegal object!"); _afterRemoveChildOfThis (aChildNode); return EChange.CHANGED; }
protected void resendItem (@Nonnull final ResendItem aItem) throws OpenAS2Exception { if (LOGGER.isDebugEnabled ()) LOGGER.debug ("Resending item"); IMessage aMsg = null; try { final String sResendAction = aItem.getResendAction (); final String sRemainingRetries = Integer.toString (aItem.getRetries () - 1); aMsg = aItem.getMessage (); // Transmit the message if (LOGGER.isInfoEnabled ()) LOGGER.info ("Loaded message for resend" + aMsg.getLoggingText ()); final ICommonsMap <String, Object> aOptions = new CommonsHashMap <> (); aOptions.put (IProcessorResenderModule.OPTION_RETRIES, sRemainingRetries); getSession ().getMessageProcessor ().handle (sResendAction, aMsg, aOptions); // Finally remove from list m_aRWLock.writeLocked ( () -> m_aItems.remove (aItem)); } catch (final OpenAS2Exception ex) { ex.addSource (OpenAS2Exception.SOURCE_MESSAGE, aMsg); throw ex; } }
while (aRest.isNotEmpty ()) final HCAutoNumericJS aCurrent = aRest.remove (0); final AbstractHCAutoNumeric <?> aCurrentAutoNumeric = aCurrent.getAutoNumeric (); final JSAssocArray aCurrentJSOptions = aCurrentAutoNumeric.getJSOptions ();