org.apache.tools.ant.types
public class Quantifier extends EnumeratedAttribute
boolean[]
or raw true
and false
counts. Accepts the following values:false
false
false
true
true
true
true
than false
true
than false
true
Since: Ant 1.7
Field Summary | |
---|---|
static Quantifier | ALL ALL instance |
static Quantifier | ANY ANY instance |
static Quantifier | MAJORITY MAJORITY instance |
static Quantifier | NONE NONE instance |
static Quantifier | ONE ONE instance |
Constructor Summary | |
---|---|
Quantifier()
Default constructor. | |
Quantifier(String value)
Construct a new Quantifier with the specified value. |
Method Summary | |
---|---|
boolean | evaluate(boolean[] b)
Evaluate a boolean |
boolean | evaluate(int t, int f)
Evaluate integer true vs. |
String[] | getValues()
Return the possible values. |
Parameters: value the EnumeratedAttribute value.
boolean array.Parameters: b the boolean[]
to evaluate.
Returns: true if the argument fell within the parameters of this Quantifier.
true
vs. false
counts.Parameters: t the number of true
values. f the number of false
values.
Returns: true if the arguments fell within the parameters of this Quantifier.
Returns: String[] of EnumeratedAttribute values.