Package com.atlassian.crowd.search.query
Class QueryUtils
java.lang.Object
com.atlassian.crowd.search.query.QueryUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <U> Class<U>checkAssignableFrom(Class<U> givenType, Class<?>... types) Check whethergivenTypeis assignable from any of thetypes
-
Constructor Details
-
QueryUtils
public QueryUtils()
-
-
Method Details
-
checkAssignableFrom
Check whethergivenTypeis assignable from any of thetypes- Type Parameters:
U- the type ofgivenType- Parameters:
givenType- the type to checktypes- the possible typesgivenTypeshould be assignable from.- Returns:
givenTypeif it is assignable from any of the types.- Throws:
IllegalArgumentException- ifgivenTypeis not assignable to any of the types.
-