Package xal.tools.data
Class AndQualifier
java.lang.Object
xal.tools.data.CompoundQualifier
xal.tools.data.AndQualifier
- All Implemented Interfaces:
Qualifier
Generate a compound qualifier using the "and" operation.
-
Field Summary
Fields inherited from class xal.tools.data.CompoundQualifier
DEFAULT_RESERVE_CAPACITY, qualifierCount, qualifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorAndQualifier
(int reserve) Primary ConstructorAndQualifier
(List<? extends Qualifier> qualifiers) Constructor with a list of qualifiers.AndQualifier
(Qualifier... qualifiers) Constructor with a variable number of qualifiers. -
Method Summary
Modifier and TypeMethodDescriptionThe binary operator token.boolean
Determine if the specified object satisfies every sub qualifier's criteria.Methods inherited from class xal.tools.data.CompoundQualifier
append, toString
-
Constructor Details
-
AndQualifier
public AndQualifier(int reserve) Primary Constructor- Parameters:
reserve
- the initial capacity reserved for holding qualifiers.
-
AndQualifier
Constructor with a variable number of qualifiers.- Parameters:
qualifiers
- the qualifiers to append
-
AndQualifier
Constructor with a list of qualifiers.- Parameters:
qualifiers
- the qualifiers to append
-
AndQualifier
public AndQualifier()Constructor
-
-
Method Details
-
matches
Determine if the specified object satisfies every sub qualifier's criteria.- Parameters:
object
- The object to test- Returns:
- true if the object is a match and false if not
-
binaryToken
The binary operator token.- Specified by:
binaryToken
in classCompoundQualifier
- Returns:
- "&" to represent this "and" operation.
-