protected static boolean isArrayMapOrCollection(Class<?> type) {

    if (type.isArray()) {
      return true;
    } else if (Collection.class.isAssignableFrom(type)) {
      return true;
    } else if (Map.class.isAssignableFrom(type)) {
      return true;
    }
    return false;
  }
protected static boolean isArrayMapOrCollection ( Class < ? > type ) { if ( type . isArray ( ) ) { return true ; } else if ( Collection . class . isAssignableFrom ( type ) ) { return true ; } else if ( Map . class . isAssignableFrom ( type ) ) { return true ; } return false ; }
This method determines if the given {@code type} is a container-type (an array, {@link Collection} or {@link Map}).

@see CliValueContainer#isArrayMapOrCollection()

@param type is the {@link Class} to check.
@return {@code true} if the given {@code type} is a container-type.