|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.types.EnumeratedAttribute
org.apache.tools.ant.types.Quantifier
public class Quantifier
EnumeratedAttribute for quantifier comparisons. Evaluates a
boolean[] or raw true and false
counts. Accepts the following values:
false
false
false
true
true
true
true than false
true than false
true
| 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 |
| Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute |
|---|
value |
| Constructor Summary | |
|---|---|
Quantifier()
Default constructor. |
|
Quantifier(java.lang.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. |
java.lang.String[] |
getValues()
Return the possible values. |
| Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute |
|---|
containsValue, getIndex, getInstance, getValue, indexOfValue, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Quantifier ALL
public static final Quantifier ANY
public static final Quantifier ONE
public static final Quantifier MAJORITY
public static final Quantifier NONE
| Constructor Detail |
|---|
public Quantifier()
public Quantifier(java.lang.String value)
value - the EnumeratedAttribute value.| Method Detail |
|---|
public java.lang.String[] getValues()
getValues in class EnumeratedAttributepublic boolean evaluate(boolean[] b)
boolean array.
- Parameters:
b - the boolean[] to evaluate.
- Returns:
- true if the argument fell within the parameters of this Quantifier.
public boolean evaluate(int t,
int f)
true vs. false counts.
t - the number of true values.f - the number of false values.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||