public final class LongPlusMultFirst 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 LongPlusMultFirst |
minusMult(long constant)
a - b*constant.
|
static LongPlusMultFirst |
plusMult(long constant)
a + b*constant.
|
public long multiplicator
public final long apply(long a,
long b)
apply in interface LongLongFunctiona - the first argument passed to the function.b - the second argument passed to the function.public static LongPlusMultFirst minusMult(long constant)
public static LongPlusMultFirst plusMult(long constant)
Jump to the Parallel Colt Homepage