Package com.jalios.jcms
Class ReverseDataSelector
- java.lang.Object
-
- com.jalios.jcms.ReverseDataSelector
-
- All Implemented Interfaces:
DataSelector
,java.util.function.Predicate<Data>
public class ReverseDataSelector extends java.lang.Object implements DataSelector
ThisDataSelector
selects the complementary set of a givenDataSelector
.- 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 com.jalios.jcms.DataSelector
test
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
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 interfaceDataSelector
- Parameters:
data
- the data to evaluate.- Returns:
- true if the encapsulated DataSelector returns false. False otherwise.
-
-