Class PropertyNotEquals<T>

  • All Implemented Interfaces:
    Query<T>

    public class PropertyNotEquals<T>
    extends AbstractPropertyQuery<T>
    Deprecated.
    Use Context.getObjectsAsStream(Class) and the Java 8+ streaming API Stream instead.
    Query that returns any objects in a context with a specified property whose value is not equal to some specified value.
    Version:
    $Revision$ $Date$
    Author:
    Nick Collier
    • Constructor Detail

      • PropertyNotEquals

        public PropertyNotEquals​(Context<T> context,
                                 String propertyName,
                                 Object propertyValue)
        Deprecated.
        Creates a PropertyEquals query to query the specified context for objects with the specified property where that property is equal to the specified value.
        Parameters:
        context -
        propertyName -
        propertyValue -
    • Method Detail

      • createPredicate

        protected org.apache.commons.collections15.Predicate<T> createPredicate​(Context<T> context,
                                                                                String propertyName)
        Deprecated.
        Creates a Predicate that tests for property equality.
        Specified by:
        createPredicate in class AbstractPropertyQuery<T>
        Parameters:
        context -
        propertyName -
        Returns:
        a Predicate that tests for property equality.