Package com.algorithmia.algo
Class AlgorithmRef
- java.lang.Object
-
- com.algorithmia.algo.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 pathint
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-