Class QueryUtils

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

public class QueryUtils extends Object
  • Constructor Details

    • QueryUtils

      public QueryUtils()
  • Method Details

    • 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.