Class Link


  • public class Link
    extends Object
    Link
    • Constructor Detail

      • Link

        public Link()
    • Method Detail

      • first

        public Link first​(Href first)
      • getFirst

        public Href getFirst()
        Get first
        Returns:
        first
      • setFirst

        public void setFirst​(Href first)
        first
        Parameters:
        first -
      • last

        public Link last​(Href last)
      • getLast

        public Href getLast()
        Get last
        Returns:
        last
      • setLast

        public void setLast​(Href last)
        last
        Parameters:
        last -
      • next

        public Link next​(Href next)
      • getNext

        public Href getNext()
        Get next
        Returns:
        next
      • setNext

        public void setNext​(Href next)
        next
        Parameters:
        next -
      • previous

        public Link previous​(Href previous)
      • getPrevious

        public Href getPrevious()
        Get previous
        Returns:
        previous
      • setPrevious

        public void setPrevious​(Href previous)
        previous
        Parameters:
        previous -
      • self

        public Link self​(Href self)
      • getSelf

        public Href getSelf()
        Get self
        Returns:
        self
      • setSelf

        public void setSelf​(Href self)
        self
        Parameters:
        self -
      • equals

        public boolean equals​(Object o)
        Return true if this Link object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Link fromJson​(String jsonString)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Link given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Link
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Link
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Link to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException