com.atlassian.jira.util
Class Predicates

java.lang.Object
  extended by com.atlassian.jira.util.Predicates

public class Predicates
extends Object


Constructor Summary
Predicates()
           
 
Method Summary
static
<T> Predicate<T>
equalTo(T check)
          A predicate that check that some input equals the passed argument.
static
<T> Predicate<T>
isNull()
          A predicate that check that all input is null.
static
<T> Predicate<T>
notNull()
          A predicate that check that all input is not null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Predicates

public Predicates()
Method Detail

equalTo

public static <T> Predicate<T> equalTo(@NotNull
                                       T check)
A predicate that check that some input equals the passed argument.

Type Parameters:
T - the type
Parameters:
check - the element to check equality of, must not be null.
Returns:
a Predicate that will return true if the input matches the argument.

notNull

public static <T> Predicate<T> notNull()
A predicate that check that all input is not null.

Type Parameters:
T - the type
Returns:
a Predicate that will return true if the input is not null.

isNull

public static <T> Predicate<T> isNull()
A predicate that check that all input is null.

Type Parameters:
T - the type
Returns:
a Predicate that will return true if the input is null.


Copyright © 2002-2009 Atlassian. All Rights Reserved.