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