Class Not

  • All Implemented Interfaces:
    Container.Filter, Serializable

    @Deprecated
    public final class Not
    extends Object
    implements Container.Filter
    Deprecated.
    As of 8.0, the whole filtering feature is integrated into DataProvider. For in-memory case (ListDataProvider), use predicates as filters. For back-end DataProviders, filters are specific to the implementation.
    Negating filter that accepts the items rejected by another filter. This filter directly supports in-memory filtering when the negated filter does so.
    Since:
    6.6
    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • getFilter

        public Container.Filter getFilter()
        Deprecated.
        Returns the negated filter.
        Returns:
        Filter
      • passesFilter

        public boolean passesFilter​(Object itemId,
                                    Item item)
                             throws UnsupportedOperationException
        Deprecated.
        Description copied from interface: Container.Filter
        Check if an item passes the filter (in-memory filtering).
        Specified by:
        passesFilter in interface Container.Filter
        Parameters:
        itemId - identifier of the item being filtered; may be null when the item is being added to the container
        item - the item being filtered
        Returns:
        true if the item is accepted by this filter
        Throws:
        UnsupportedOperationException - if the filter cannot be used for in-memory filtering
      • appliesToProperty

        public boolean appliesToProperty​(Object propertyId)
        Deprecated.
        Returns true if a change in the named property may affect the filtering result. Return value is the same as appliesToProperty(Object) for the negated filter.
        Specified by:
        appliesToProperty in interface Container.Filter
        Returns:
        boolean
      • equals

        public boolean equals​(Object obj)
        Deprecated.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Deprecated.
        Overrides:
        hashCode in class Object