Exemplo 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;
 }
Exemplo 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());
 }