Class DefaultUriSource

  • All Implemented Interfaces:
    java.io.Serializable, UriSource, TestSource

    class DefaultUriSource
    extends java.lang.Object
    implements UriSource
    Default implementation of UriSource.
    Since:
    1.3
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
      private java.net.URI uri  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultUriSource​(java.net.URI uri)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.net.URI getUri()
      Get the URI that represents this source.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • uri

        private final java.net.URI uri
    • Constructor Detail

      • DefaultUriSource

        DefaultUriSource​(java.net.URI uri)
    • Method Detail

      • getUri

        public java.net.URI getUri()
        Description copied from interface: UriSource
        Get the URI that represents this source.
        Specified by:
        getUri in interface UriSource
        Returns:
        the source URI; never null
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object