Class Link

  • Direct Known Subclasses:
    RunPlayer

    public class Link
    extends Object
    A link consisting of a URI and optionally a relation.

    This class is immutable and thread-safe.
    • Method Detail

      • getURI

        public String getURI()
        Gets the URI for this link.
        Returns:
        the URI
      • getRelation

        public Optional<String> getRelation()
        Gets the relation for this link.
        Returns:
        an Optional with the relation, or empty if not set