public class NumberOperationContributor extends OperationContributor
cachedMethodNames
Constructor and Description |
---|
NumberOperationContributor() |
Modifier and Type | Method and Description |
---|---|
Number |
abs() |
double |
asDouble() |
float |
asFloat() |
int |
asInteger() |
long |
asLong() |
double |
asReal() |
int |
ceiling() |
boolean |
contributesTo(Object target) |
long |
factorial()
n!.
|
int |
floor() |
protected Number |
getTarget() |
double |
ln() |
double |
log() |
double |
log10() |
Number |
max(Number other) |
Number |
min(Number other) |
Number |
pow(Number n) |
int |
round() |
findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTarget
public boolean contributesTo(Object target)
contributesTo
in class OperationContributor
protected Number getTarget()
getTarget
in class OperationContributor
OperationContributor.target
field.public long factorial()
public int floor()
public int ceiling()
public int round()
public double ln()
public double log()
public double log10()
public Number abs()
public double asReal()
public double asDouble()
public float asFloat()
public int asInteger()
public long asLong()
Copyright © 2020. All rights reserved.