Back to project page android-memorytrainer.
The source code is released under:
GNU General Public License
If you think the Android project android-memorytrainer 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 org.hoffimar.android.memorytrainer.model; /*from w w w . ja v a 2s . c o m*/ import java.util.List; import com.google.api.client.util.Key; public class Link { @Key("@href") public String href; @Key("@rel") public String rel; public static String find(List<Link> links, String rel) { if (links != null) { for (Link link : links) { if (rel.equals(link.rel)) { return link.href; } } } return null; } }