com.atlassian.crowd.util
Class DirectoryEntityUtils

java.lang.Object
  extended by com.atlassian.crowd.util.DirectoryEntityUtils

public class DirectoryEntityUtils
extends Object


Constructor Summary
DirectoryEntityUtils()
           
 
Method Summary
static
<T extends DirectoryEntity>
com.google.common.base.Predicate<T>
whereNameEquals(String name)
          Returns a Predicate that returns true when its (entity) argument's name is equal to the given name to match.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryEntityUtils

public DirectoryEntityUtils()
Method Detail

whereNameEquals

public static <T extends DirectoryEntity> com.google.common.base.Predicate<T> whereNameEquals(String name)
Returns a Predicate that returns true when its (entity) argument's name is equal to the given name to match.

Type Parameters:
T - the type of DirectoryEntity which the predicate should be for
Parameters:
name - the name that entities should match in order for the returned predicate to return true
Returns:
a Predicate that returns true when its (entity) argument's name is equal to the given name to match.


Copyright © 2013 Atlassian. All Rights Reserved.