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

io.relayr.java.model.models.ModelLinks Maven / Gradle / Ivy

The newest version!
package io.relayr.java.model.models;

/**
 * Defines hyperlinks for similar objects in the structure.
 * Use #getFirst and #getLast parameters for paging.
 */
public class ModelLinks {

    private ModelLink self;
    private ModelLink next;
    private ModelLink last;
    private ModelLink first;

    public String getSelf() {
        return self.href;
    }

    public String getLast() {
        return last.href;
    }

    public String getFirst() {
        return first.href;
    }

    public String getNext() {
        return next.href;
    }

    class ModelLink {

        final String href;

        public ModelLink(String href) {
            this.href = href;
        }
    }

    @Override public String toString() {
        return "ModelLinks{" +
                "self=" + self +
                ", next=" + next +
                ", last=" + last +
                ", first=" + first +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy