RxJava



rx.util.functions
Class Not<T>

java.lang.Object
  extended by rx.util.functions.Not<T>
Type Parameters:
T - The type of the single input parameter.
All Implemented Interfaces:
Func1<T,java.lang.Boolean>, Function

public class Not<T>
extends java.lang.Object
implements Func1<T,java.lang.Boolean>

Implements the negation of a predicate.


Constructor Summary
Not(Func1<? super T,java.lang.Boolean> predicate)
          Constructs a predicate that returns true for each input that the source predicate returns false for and vice versa.
 
Method Summary
 java.lang.Boolean call(T param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Not

public Not(Func1<? super T,java.lang.Boolean> predicate)
Constructs a predicate that returns true for each input that the source predicate returns false for and vice versa.

Parameters:
predicate - The source predicate to negate.
Method Detail

call

public java.lang.Boolean call(T param)
Specified by:
call in interface Func1<T,java.lang.Boolean>