/** * Call the <code>doAppend</code> method on all attached appenders. */ public int appendLoopOnAppenders(E e) { int size = 0; final Appender<E>[] appenderArray = appenderList.asTypedArray(); final int len = appenderArray.length; for (int i = 0; i < len; i++) { appenderArray[i].doAppend(e); size++; } return size; }
/** * Call the <code>doAppend</code> method on all attached appenders. */ public int appendLoopOnAppenders(E e) { int size = 0; final Appender<E>[] appenderArray = appenderList.asTypedArray(); final int len = appenderArray.length; for (int i = 0; i < len; i++) { appenderArray[i].doAppend(e); size++; } return size; }
/** * Call the <code>doAppend</code> method on all attached appenders. */ public int appendLoopOnAppenders(E e) { int size = 0; final Appender<E>[] appenderArray = appenderList.asTypedArray(); final int len = appenderArray.length; for (int i = 0; i < len; i++) { appenderArray[i].doAppend(e); size++; } return size; }
/** * Call the <code>doAppend</code> method on all attached appenders. */ public int appendLoopOnAppenders(E e) { int size = 0; final Appender<E>[] appenderArray = appenderList.asTypedArray(); final int len = appenderArray.length; for (int i = 0; i < len; i++) { appenderArray[i].doAppend(e); size++; } return size; }
/** * Loop through the filters in the list. As soon as a filter decides on * ACCEPT or DENY, then that value is returned. If all of the filters return * NEUTRAL, then NEUTRAL is returned. */ public FilterReply getFilterChainDecision(E event) { final Filter<E>[] filterArrray = filterList.asTypedArray(); final int len = filterArrray.length; for (int i = 0; i < len; i++) { final FilterReply r = filterArrray[i].decide(event); if (r == FilterReply.DENY || r == FilterReply.ACCEPT) { return r; } } // no decision return FilterReply.NEUTRAL; }
/** * Loop through the filters in the list. As soon as a filter decides on * ACCEPT or DENY, then that value is returned. If all of the filters return * NEUTRAL, then NEUTRAL is returned. */ public FilterReply getFilterChainDecision(E event) { final Filter<E>[] filterArrray = filterList.asTypedArray(); final int len = filterArrray.length; for (int i = 0; i < len; i++) { final FilterReply r = filterArrray[i].decide(event); if (r == FilterReply.DENY || r == FilterReply.ACCEPT) { return r; } } // no decision return FilterReply.NEUTRAL; }
/** * Loop through the filters in the list. As soon as a filter decides on * ACCEPT or DENY, then that value is returned. If all of the filters return * NEUTRAL, then NEUTRAL is returned. */ public FilterReply getFilterChainDecision(E event) { final Filter<E>[] filterArrray = filterList.asTypedArray(); final int len = filterArrray.length; for (int i = 0; i < len; i++) { final FilterReply r = filterArrray[i].decide(event); if (r == FilterReply.DENY || r == FilterReply.ACCEPT) { return r; } } // no decision return FilterReply.NEUTRAL; }
/** * Loop through the filters in the list. As soon as a filter decides on * ACCEPT or DENY, then that value is returned. If all of the filters return * NEUTRAL, then NEUTRAL is returned. */ public FilterReply getFilterChainDecision(E event) { final Filter<E>[] filterArrray = filterList.asTypedArray(); final int len = filterArrray.length; for (int i = 0; i < len; i++) { final FilterReply r = filterArrray[i].decide(event); if (r == FilterReply.DENY || r == FilterReply.ACCEPT) { return r; } } // no decision return FilterReply.NEUTRAL; }
@Test public void basicToArrayTyped() { cowaList.add(1); Integer[] result = cowaList.asTypedArray(); assertArrayEquals(new Integer[] { 1 }, result); }