Class ReverseDataSelector

  • All Implemented Interfaces:
    DataSelector, java.util.function.Predicate<Data>

    public class ReverseDataSelector
    extends java.lang.Object
    implements DataSelector
    This DataSelector selects the complementary set of a given DataSelector.
    Version:
    $Revision: 14756 $
    Author:
    Olivier Dedieu
    See Also:
    AndDataSelector, OrDataSelector
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReverseDataSelector​(DataSelector dataSelector)
      Creates a new ReverseDataSelector from an other DataSelectors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSelected​(Data data)
      Returns the reverse value of the encapsulated DataSelector.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • ReverseDataSelector

        public ReverseDataSelector​(DataSelector dataSelector)
        Creates a new ReverseDataSelector from an other DataSelectors.
        Parameters:
        dataSelector - the DataSelector
    • Method Detail

      • isSelected

        public boolean isSelected​(Data data)
        Returns the reverse value of the encapsulated DataSelector.
        Specified by:
        isSelected in interface DataSelector
        Parameters:
        data - the data to evaluate.
        Returns:
        true if the encapsulated DataSelector returns false. False otherwise.