public final class LongPlusMultSecond extends Object implements LongLongFunction
Modifier and Type | Field and Description |
---|---|
long |
multiplicator
Public read/write access to avoid frequent object construction.
|
Modifier and Type | Method and Description |
---|---|
long |
apply(long a,
long b)
Returns the result of the function evaluation.
|
static LongPlusMultSecond |
minusMult(long constant)
a - b*constant.
|
static LongPlusMultSecond |
plusMult(long constant)
a + b*constant.
|
public long multiplicator
public final long apply(long a, long b)
apply
in interface LongLongFunction
a
- the first argument passed to the function.b
- the second argument passed to the function.public static LongPlusMultSecond minusMult(long constant)
public static LongPlusMultSecond plusMult(long constant)
Jump to the Parallel Colt Homepage