1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 | package Torello.Java.Function;
/**
* <CODE>IntShortConsumer Documentation.</CODE><BR /><BR />
* <EMBED CLASS="external-html" DATA-FILE-ID=TWOPRIMCONS>
* <EMBED CLASS="globalDefs" DATA-Type1=int DATA-Type2=short>
*/
@FunctionalInterface
public interface IntShortConsumer
{
/**
* Performs this operation on the given arguments.
* @param i The integer (first) input-argument.
* @param s The short (second) input-argument.
*/
public void accept(int i, short s);
/**
* <EMBED CLASS="external-html" DATA-FILE-ID="CONTHENMETH">
* @param after <EMBED CLASS="external-html" DATA-FILE-ID="CONTHENAFT">
* @return <EMBED CLASS="external-html" DATA-FILE-ID="CONTHENRET">
* @throws NullPointerException if parameter {@code 'other'} is null.
*/
default IntShortConsumer andThen(IntShortConsumer after)
{
if (after == null)
throw new NullPointerException("null has been passed to parameter 'after'");
return (int i, short s) ->
{
this.accept(i, s);
after.accept(i, s);
};
}
}
|