public interface Arity
| Modifier and Type | Method and Description |
|---|---|
int |
max()
The maximum number of arguments operator can receive.
|
int |
min()
The minimum number of arguments operator can receive.
|
static Arity |
nary(int n)
Creates N-ary object.
|
static Arity |
nullary()
Creates nullary object.
|
static Arity |
of(int min,
int max)
Creates arity with given
min and max. |
int min()
int max()
Integer.MAX_VALUE.static Arity of(int min, int max)
min and max.min - The minimum number of arguments. Must be zero or positive.max - The maximum number of arguments. Must be zero or positive and greater than or equal to min.static Arity nary(int n)
n - The N.static Arity nullary()