All Downloads are FREE. Search and download functionalities are using the official Maven repository.

syncloud.google.docs.model.Link Maven / Gradle / Ivy

The newest version!
package syncloud.google.docs.model;

import com.google.api.client.util.Key;

import java.util.List;

public class Link {

    @Key("@href")
    public String href;

    @Key("@rel")
    public String rel;

    public Link() {
    }

    public Link(String href, String rel) {
        this.href = href;
        this.rel = rel;
    }

    public static Link find(List links, LinkRel rel) {

        if (links == null)
            return null;

        for (Link link : links) {
            if (rel.getType().equals(link.rel)) {
                return link;
            }
        }

        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy