001    package org.apache.jcs.engine.match.behavior;
002    
003    import java.io.Serializable;
004    import java.util.Set;
005    
006    /** Key matchers need to implement this interface. */
007    public interface IKeyMatcher<K extends Serializable> extends Serializable
008    {
009        /**
010         * Creates a pattern and find matches on the array.
011         * <p>
012         * @param pattern
013         * @param keyArray
014         * @return Set of the matching keys
015         */
016        Set<K> getMatchingKeysFromArray( String pattern, Set<K> keyArray );
017    }