Class PResource

java.lang.Object
org.praxislive.core.Value
org.praxislive.core.types.PResource
All Implemented Interfaces:
Comparable<PResource>

public final class PResource extends Value implements Comparable<PResource>
  • Field Details

  • Method Details

    • value

      public URI value()
    • toString

      public String toString()
      Description copied from class: Value
      Values must override the default method to return a string representation that is immutable.
      Specified by:
      toString in class Value
      Returns:
      String representation
    • hashCode

      public int hashCode()
      Description copied from class: Value
      Values must override the default hashcode method.
      Specified by:
      hashCode in class Value
      Returns:
      int hashcode
    • equals

      public boolean equals(Object obj)
      Description copied from class: Value
      Values must override the default equals method. This method should only return true if the supplied Object is of the same type as the implementing Value. Values of an unknown type should be coerced before calling this method. This method does not have to guarantee that this.equals(that) == this.toString().equals(that.toString())
      Specified by:
      equals in class Value
      Parameters:
      obj -
      Returns:
      boolean
    • of

      public static PResource of(URI uri)
    • parse

      public static PResource parse(String str) throws ValueFormatException
      Throws:
      ValueFormatException
    • from

      public static Optional<PResource> from(Value arg)
    • info

      public static ArgumentInfo info()
    • info

      public static ArgumentInfo info(boolean allowEmpty)
    • compareTo

      public int compareTo(PResource o)
      Specified by:
      compareTo in interface Comparable<PResource>
    • resolve

      public List<URI> resolve(Lookup lookup)