R - the ModulusPolicy result typeT1 - the accumulator typeT2 - the modulus typepublic class Modulus<R,T1,T2> extends Object implements BinaryDelegate<R,T1,T2>
| Constructor and Description |
|---|
Modulus(ModulusPolicy<R,T1,T2> policy) |
| Modifier and Type | Method and Description |
|---|---|
R |
perform(T1 accumulator,
T2 value)
Executes the delegate for the given elements yielding a result of type R
|
public Modulus(ModulusPolicy<R,T1,T2> policy)
public R perform(T1 accumulator, T2 value)
BinaryDelegateperform in interface BinaryDelegate<R,T1,T2>accumulator - the former elementvalue - the latter elementCopyright © 2016. All rights reserved.