Class AndOperator
- java.lang.Object
- 
- com.tangosol.coherence.dslquery.operator.BaseOperator<AllFilter>
- 
- com.tangosol.coherence.dslquery.operator.AndOperator
 
 
- 
 public class AndOperator extends BaseOperator<AllFilter> An operator representing a logical AND (&&).- Since:
- Coherence 12.2.1
- Author:
- jk 2013.12.03
 
- 
- 
Field SummaryFields Modifier and Type Field Description static AndOperatorINSTANCEAn instance of the AndOperator.- 
Fields inherited from class com.tangosol.coherence.dslquery.operator.BaseOperatorf_asAlias, f_fConditional, f_sSymbol
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAndOperator()Constructs an AndOperator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToTokenTable(TokenTable tokenTable)Add this operator to the givenTokenTable.AllFiltermakeFilter(Object oLeft, Object oRight)Create aFilterfor thisBaseOperatorusing the specified left and right values.protected voidpopulateFilterArray(Filter[] aFilterDest, Filter... aFilterSrc)Populate the specified targetFilterarray with the Filters in the source array.- 
Methods inherited from class com.tangosol.coherence.dslquery.operator.BaseOperatoraddAliases, getAliases, getSymbol, isConditional, makeExtractor, makeExtractor, makeFilter, toString, unmodifiableSet
 
- 
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final AndOperator INSTANCE An instance of the AndOperator.
 
- 
 - 
Method Detail- 
makeFilterpublic AllFilter makeFilter(Object oLeft, Object oRight) Description copied from class:BaseOperatorCreate aFilterfor thisBaseOperatorusing the specified left and right values.Note: This method should be thread safe as operators are stored in a static map so may be called by multiple threads. - Overrides:
- makeFilterin class- BaseOperator<AllFilter>
- Parameters:
- oLeft- the left value to use to build a Filter
- oRight- the right value to use to build a Filter
- Returns:
- a Filter representing this operation
 
 - 
addToTokenTablepublic void addToTokenTable(TokenTable tokenTable) Description copied from class:BaseOperatorAdd this operator to the givenTokenTable. This typically means adding this operator using its symbol and also adding any aliases.- Specified by:
- addToTokenTablein class- BaseOperator<AllFilter>
- Parameters:
- tokenTable- the TokenTable to add this operator to
 
 - 
populateFilterArrayprotected void populateFilterArray(Filter[] aFilterDest, Filter... aFilterSrc) Populate the specified targetFilterarray with the Filters in the source array. If the any of the Filters in the source array is anAllFilterthen rather than adding the AllFilter itself to the target array all of the filters contained within the AllFilter are added to the array.- Parameters:
- aFilterDest- the Filter array to be populated
- aFilterSrc- the outer filter to add to the array
 
 
- 
 
-