| |
|
| java.lang.Object org.apache.tools.ant.types.EnumeratedAttribute org.apache.tools.ant.types.Quantifier
Quantifier | public class Quantifier extends EnumeratedAttribute (Code) | | EnumeratedAttribute for quantifier comparisons. Evaluates a
boolean[] or raw true and false
counts. Accepts the following values:
- "all"
- none false
- "each"
- none false
- "every"
- none false
- "any"
- at least one true
- "some"
- at least one true
- "one"
- exactly one true
- "majority"
- more true than false
- "most"
- more true than false
- "none"
- none true
since: Ant 1.7 |
Constructor Summary | |
public | Quantifier() Default constructor. | public | Quantifier(String value) Construct a new Quantifier with the specified value. |
Method Summary | |
public boolean | evaluate(boolean[] b) Evaluate a boolean array.
Parameters: b - the boolean[] to evaluate. | public boolean | evaluate(int t, int f) Evaluate integer true vs. | public String[] | getValues() Return the possible values. |
Quantifier | public Quantifier()(Code) | | Default constructor.
|
Quantifier | public Quantifier(String value)(Code) | | Construct a new Quantifier with the specified value.
Parameters: value - the EnumeratedAttribute value. |
evaluate | public boolean evaluate(boolean[] b)(Code) | | Evaluate a boolean array.
Parameters: b - the boolean[] to evaluate. true if the argument fell within the parameters of this Quantifier. |
evaluate | public boolean evaluate(int t, int f)(Code) | | Evaluate integer true vs. false counts.
Parameters: t - the number of true values. Parameters: f - the number of false values. true if the arguments fell within the parameters of this Quantifier. |
getValues | public String[] getValues()(Code) | | Return the possible values.
String[] of EnumeratedAttribute values. |
|
|
|