Class Always

  • All Implemented Interfaces:
    If<Object,​Object>

    public class Always
    extends Object
    implements If<Object,​Object>

    Simple If condition that always returns true for any value.

    Author:
    Jeff Schnitzer
    • Constructor Detail

      • Always

        public Always()
    • Method Detail

      • matchesValue

        public boolean matchesValue​(Object value)
        Description copied from interface: If
        Test a simple property value.
        Specified by:
        matchesValue in interface If<Object,​Object>
        Parameters:
        value - is the actual value of a particular field
        Returns:
        true if the value matches the condition defined by an instance of this interface.
      • matchesPojo

        public boolean matchesPojo​(Object pojo)
        Description copied from interface: If
        Override this method to test a whole pojo for your condition. The pojo might be an entity or an embedded class object - whichever holds the field being tested.
        Specified by:
        matchesPojo in interface If<Object,​Object>
        Parameters:
        pojo - is the entity object on which the field/value exists
        Returns:
        true if the value matches the condition defined by an instance of this interface.