public class DoublePredefined extends PredefinedFunction
GroupingExpression
for expressions that evaluate to a
double.Modifier | Constructor and Description |
---|---|
|
DoublePredefined(GroupingExpression exp,
DoubleBucket arg1,
DoubleBucket... argN)
Constructs a new instance of this class.
|
private |
DoublePredefined(GroupingExpression exp,
List<DoubleBucket> args) |
Modifier and Type | Method and Description |
---|---|
DoubleBucket |
getBucket(int i)
Returns the bucket at the given index.
|
static DoublePredefined |
newInstance(GroupingExpression exp,
List<DoubleBucket> args)
Constructs a new instance of this class from a list of arguments.
|
getNumBuckets
asList, asList, asList, getArg, getNumArgs, iterator, resolveLevel, visit
asImage, asString, getLevel, setLabel
getLabel, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public DoublePredefined(GroupingExpression exp, DoubleBucket arg1, DoubleBucket... argN)
exp
- The expression to evaluate, must evaluate to a double.arg1
- The compulsory bucket.argN
- The optional buckets.private DoublePredefined(GroupingExpression exp, List<DoubleBucket> args)
public DoubleBucket getBucket(int i)
PredefinedFunction
getBucket
in class PredefinedFunction
i
- The index of the bucket to return.public static DoublePredefined newInstance(GroupingExpression exp, List<DoubleBucket> args)
exp
- The expression to evaluate, must evaluate to a double.args
- The buckets to pass to the constructor.IllegalArgumentException
- Thrown if the list of buckets is empty.Copyright © 2018. All rights reserved.