Class URL

java.lang.Object
com.sanctionco.opconnect.model.URL

public class URL extends Object
Represents a URL contained in an item.
  • Method Details

    • getUrl

      public String getUrl()
      Get the actual string URL.
      Returns:
      the string URL
    • getPrimary

      public Boolean getPrimary()
      Get whether this URL is a primary URL address or not.
      Returns:
      true if this URL is primary, false otherwise
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • primary

      public static URL primary(String url)
      Create a new primary URL from the given string.
      Parameters:
      url - the string URL
      Returns:
      a new instance of URL
    • standard

      public static URL standard(String url)
      Create a new non-primary URL from the given string.
      Parameters:
      url - the string URL
      Returns:
      a new instance of URL