113 } catch (final RuntimeException | Error e) {
114 throw e;
115 } catch (final Throwable t) {
116 throw new RuntimeException(t);
117 }
118 }
119
120 return result;
121 }
122
123 /**
124 * For each callback
125 *
126 * @param val value
127 * @param i position of value
128 *
129 * @return true if callback invocation return true
130 *
131 * @throws Throwable if invocation throws an exception/error
132 */
133 protected abstract boolean forEach(final Object val, final long i) throws Throwable;
134
135 }
|
113 } catch (final RuntimeException | Error e) {
114 throw e;
115 } catch (final Throwable t) {
116 throw new RuntimeException(t);
117 }
118 }
119
120 return result;
121 }
122
123 /**
124 * For each callback
125 *
126 * @param val value
127 * @param i position of value
128 *
129 * @return true if callback invocation return true
130 *
131 * @throws Throwable if invocation throws an exception/error
132 */
133 protected abstract boolean forEach(final Object val, final double i) throws Throwable;
134
135 }
|