Class Resource

  • All Implemented Interfaces:

    
    public final class Resource<T extends Object>
    
                        

    A resource, as described by a URL and loaded by a ResourceLoader.

    Author:

    Peter Wall

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Resource.Companion
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final URL getResourceURL()
      final T load() Load the resource.
      final Resource<T> resolve(String relativeURL) Resolve a relative URL against the current Resource, returning a new Resource.
      Boolean equals(Object other)
      Integer hashCode()
      String toString() Create a string form of the URL for this Resource suitable for use in debugging and logging messages.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait