Class AlgorithmRef


  • public class AlgorithmRef
    extends java.lang.Object
    A reference to an algorithm and possibly a specific version.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String algoUri  
    • Constructor Summary

      Constructors 
      Constructor Description
      AlgorithmRef​(java.lang.String algoUri)
      Build an AlgorithmRef from an algorithm url like "/user/algo/version"
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getUrl()
      Resolves this file reference into an HTTP url path
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • algoUri

        public final java.lang.String algoUri
    • Constructor Detail

      • AlgorithmRef

        public AlgorithmRef​(java.lang.String algoUri)
        Build an AlgorithmRef from an algorithm url like "/user/algo/version"
        Parameters:
        algoUri - a string reference to an algorithm of the form "/user/algo" or "/user/algo/version"
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Resolves this file reference into an HTTP url path
        Returns:
        the HTTP url for this file
      • toString

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

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