ContainsAllFilter Class Reference

#include <coherence/util/filter/ContainsAllFilter.hpp>

Inherits ComparisonFilter.

List of all members.


Detailed Description

Filter which tests a Collection or ObjectArray value returned from a method invocation for containment of all values in a Set.

More formally, if the specified extractor returns a Collection, evaluate is functionally equivalent to the following code:

 return ((Collection) extract(o))->containsAll((Set) getValue());
 
If the specified method returns an ObjectArray, evaluate is functionally equivalent to the following code:
 return Collections->asList((ObjectArray::View) extract(o))->containsAll(
        (Set) getValue());
 
Author:
djl 2008.04.07

Public Types

typedef spec::Handle Handle
 ContainsAllFilter Handle definition.
typedef spec::View View
 ContainsAllFilter View definition.
typedef spec::Holder Holder
 ContainsAllFilter Holder definition.

Protected Member Functions

 ContainsAllFilter ()
 Default constructor (necessary for the PortableObject interface).
 ContainsAllFilter (ValueExtractor::View vExtractor, Set::View vSetValues)
 Construct an ContainsAllFilter for testing containment of the given Set of values.
virtual bool evaluateExtracted (Object::View vExtracted) const
 Evaluate the specified extracted value.

Constructor & Destructor Documentation

ContainsAllFilter ( ValueExtractor::View  vExtractor,
Set::View  vSetValues 
) [protected]

Construct an ContainsAllFilter for testing containment of the given Set of values.

Parameters:
vExtractor the ValueExtractor used by this filter
vSetValues the Set of values that a Collection or Object array is tested to contain


Member Function Documentation

virtual bool evaluateExtracted ( Object::View  vExtracted  )  const [protected, virtual]

Evaluate the specified extracted value.

Parameters:
vExtracted an extracted value to evaluate

Implements ExtractorFilter.


The documentation for this class was generated from the following file: Copyright (c) 2000-2008 Oracle. All rights reserved.