Back to project page TwitterTrends.
The source code is released under:
Apache License
If you think the Android project TwitterTrends listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package camp.androidboot.twittertrends.model; /*w w w. j a va 2s . c o m*/ import java.io.UnsupportedEncodingException; import java.net.URLEncoder; /** * */ public class Trend { private String name; public Trend() { } public Trend(String name) { this.name = name; } public String getName() { return name; } public String getQueryString() { try { return URLEncoder.encode(name, "utf-8"); } catch (UnsupportedEncodingException e) { throw new AssertionError("UTF-8 is not supported"); } } }