Object Resource.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final URL classPathURL(String name) Get a URL for a resource in the classpath (will be either a file: or a jar: URL).
      final Boolean sameAs(URL $self, URL other) Compare URLs (can't use equals() because that may involve network operations).
      final Integer relevantHashCode(URL $self) Hash code of "relevant" fields of URL (can't use hashCode() because that may involve network operations).
      final Boolean hasProtocol(String $self) Check whether a URL string has a "protocol" field (suitable for use as an absolute URL).
      final String getCurrentPath()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • classPathURL

         final URL classPathURL(String name)

        Get a URL for a resource in the classpath (will be either a file: or a jar: URL).

      • sameAs

         final Boolean sameAs(URL $self, URL other)

        Compare URLs (can't use equals() because that may involve network operations).

      • relevantHashCode

         final Integer relevantHashCode(URL $self)

        Hash code of "relevant" fields of URL (can't use hashCode() because that may involve network operations).

      • hasProtocol

         final Boolean hasProtocol(String $self)

        Check whether a URL string has a "protocol" field (suitable for use as an absolute URL).