Lines Matching refs:accept

36  * control flow, etc.  Before calling the {@code accept()} method on a
41 * {@code accept()} without again calling {@code begin()}. {@code Sink} also
51 * {@code accept()} are only valid in the active state.
73 * points for {@code accept(Object)}, {@code accept(int)}, etc, so that we do
81 * the correct {@code accept} method on its downstream {@code Sink}. Similarly,
82 * each stage must implement the correct {@code accept} method corresponding to
86 * {@code accept(Object)} to call the appropriate primitive specialization of
87 * {@code accept}, implement the appropriate primitive specialization of
89 * {@code accept}.
101 * public void accept(U u) {
102 * downstream.accept(mapper.applyAsInt(u));
110 * must call the {@code accept(int)} method when emitting values to the downstream.
111 * The {@code accept()} method applies the mapping function from {@code U} to
157 * @throws IllegalStateException if this sink does not accept int values
159 default void accept(int value) {
160 throw new IllegalStateException("called wrong accept method");
168 * @throws IllegalStateException if this sink does not accept long values
170 default void accept(long value) {
171 throw new IllegalStateException("called wrong accept method");
179 * @throws IllegalStateException if this sink does not accept double values
181 default void accept(double value) {
182 throw new IllegalStateException("called wrong accept method");
187 * {@code accept(int)}, and wires {@code accept(Integer)} to bridge to
188 * {@code accept(int)}.
192 void accept(int value);
195 default void accept(Integer i) {
197 Tripwire.trip(getClass(), "{0} calling Sink.OfInt.accept(Integer)");
198 accept(i.intValue());
204 * {@code accept(long)}, and wires {@code accept(Long)} to bridge to
205 * {@code accept(long)}.
209 void accept(long value);
212 default void accept(Long i) {
214 Tripwire.trip(getClass(), "{0} calling Sink.OfLong.accept(Long)");
215 accept(i.longValue());
221 * {@code accept(double)}, and wires {@code accept(Double)} to bridge to
222 * {@code accept(double)}.
226 void accept(double value);
229 default void accept(Double i) {
231 Tripwire.trip(getClass(), "{0} calling Sink.OfDouble.accept(Double)");
232 accept(i.doubleValue());
242 * implementation of the {@code accept()} method must call the correct
243 * {@code accept()} method on the downstream {@code Sink}.
274 * The implementation of the {@code accept()} method must call the correct
275 * {@code accept()} method on the downstream {@code Sink}.
306 * The implementation of the {@code accept()} method must call the correct
307 * {@code accept()} method on the downstream {@code Sink}.
338 * The implementation of the {@code accept()} method must call the correct
339 * {@code accept()} method on the downstream {@code Sink}.