/** * Specify the language of the query you are sending (only ja is currently effective). This is intended for language-specific clients and the default should work in the majority of cases. * * @param locale the locale * @return the instance * @since Twitter4J 2.1.1 */ public Query locale(String locale) { setLocale(locale); return this; }
query.setLang(params.get("lang")); if(params.containsKey("locale")) query.setLocale(params.get("locale")); if(params.containsKey("max_id")) query.setMaxId(Long.parseLong(params.get("max_id")));