Esempio n. 1
0
 /**
  * Return the locale used to format objects.
  *
  * @return the locale used to format objects
  */
 public Locale getLocale() {
   if (locale == null) {
     locale = Context.getThreadLocalContext().getLocale();
   }
   return locale;
 }
Esempio n. 2
0
 /**
  * Return an encoded URL value for the given object.
  *
  * @param object the object value to encode as a URL string
  * @return an encoded URL string
  */
 public String url(Object object) {
   return ClickUtils.encodeUrl(object, Context.getThreadLocalContext());
 }