com.atlassian.crowd.search.query
Class QueryUtils

java.lang.Object
  extended by com.atlassian.crowd.search.query.QueryUtils

public class QueryUtils
extends Object


Constructor Summary
QueryUtils()
           
 
Method Summary
static
<U> Class<U>
checkAssignableFrom(Class<U> givenType, Class<?>... types)
          Check whether givenType is assignable from any of the types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryUtils

public QueryUtils()
Method Detail

checkAssignableFrom

public static <U> Class<U> checkAssignableFrom(Class<U> givenType,
                                               Class<?>... types)
Check whether givenType is assignable from any of the types

Type Parameters:
U - the type of givenType
Parameters:
givenType - the type to check
types - the possible types givenType should be assignable from.
Returns:
givenType if it is assignable from any of the types.
Throws:
IllegalArgumentException - if givenType is not assignable to any of the types.


Copyright © 2013 Atlassian. All Rights Reserved.