| 
 | |||||||||
| 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 | ALLALL instance | 
| static Quantifier | ANYANY instance | 
| static Quantifier | MAJORITYMAJORITY instance | 
| static Quantifier | NONENONE instance | 
| static Quantifier | ONEONE 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 truevs. | 
|  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 | ||||||||