Interface KeyFilter<K>

  • All Superinterfaces:
    java.util.function.Predicate<K>
    All Known Implementing Classes:
    CollectionKeyFilter, CompositeKeyFilter, KeyValueFilterAsKeyFilter, PrimaryOwnerFilter, ScopeFilter

    @ThreadSafe
    @Deprecated
    public interface KeyFilter<K>
    extends java.util.function.Predicate<K>
    Deprecated.
    since 9.3 This will be replaced by Predicate in the future
    A filter for keys. This class is complemented by the KeyValueFilter class. This class is useful for cases when it may be more beneficial to not have the values available. This would include cache loaders since many implementations it may incur additional performance costs just to resurrect the values in addition to any keys.
    Since:
    6.0
    Author:
    Manik Surtani
    • Field Detail

      • ACCEPT_ALL_FILTER

        static final KeyFilter ACCEPT_ALL_FILTER
        Deprecated.
    • Method Detail

      • accept

        boolean accept​(K key)
        Deprecated.
        Parameters:
        key - key to test
        Returns:
        true if the given key is accepted by this filter.
      • test

        default boolean test​(K k)
        Deprecated.
        Specified by:
        test in interface java.util.function.Predicate<K>