Class StringSetPojoPathFilter

  • All Implemented Interfaces:
    PojoPathFilter<Set<String>>

    public final class StringSetPojoPathFilter
    extends Object
    implements PojoPathFilter<Set<String>>
    A filter expecting a simple string representation of dirty paths.

    Completely ignores container value extractors.

    • Constructor Detail

      • StringSetPojoPathFilter

        public StringSetPojoPathFilter​(Set<String> acceptedPaths)
    • Method Detail

      • test

        public boolean test​(Set<String> paths)
        Description copied from interface: PojoPathFilter
        Determines if any path in the given set of paths of is accepted by this filter.

        This method may be called very often. Implementations should take care to organize their internal data adequately, so that lookups are fast.

        Specified by:
        test in interface PojoPathFilter<Set<String>>
        Parameters:
        paths - An object representing a set of paths. Never null.
        Returns:
        true if any path in the given set is accepted by this filter, false otherwise.