Class ContentId

    • Constructor Summary

      Constructors 
      Constructor Description
      ContentId​(java.lang.String hash, java.lang.String hashType)
      BoB hash constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      static ContentId fromCid​(java.lang.String cid)
      Get BoB hash from cid attribute string.
      static ContentId fromSrc​(java.lang.String src)
      Get BoB hash from src attribute string.
      java.lang.String getCid()
      BoB hash to cid attribute string.
      java.lang.String getHash()
      Get the hash.
      java.lang.String getHashType()
      Get the hash type.
      int hashCode()  
      java.lang.String toSrc()
      BoB hash to src attribute string.
      • Methods inherited from class java.lang.Object

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

      • ContentId

        public ContentId​(java.lang.String hash,
                         java.lang.String hashType)
        BoB hash constructor.
        Parameters:
        hash - TODO javadoc me please
        hashType - TODO javadoc me please
    • Method Detail

      • getHash

        public java.lang.String getHash()
        Get the hash.
        Returns:
        the hash
      • getHashType

        public java.lang.String getHashType()
        Get the hash type.
        Returns:
        the hash type
      • toSrc

        public java.lang.String toSrc()
        BoB hash to src attribute string.
        Returns:
        src attribute string
      • getCid

        public java.lang.String getCid()
        BoB hash to cid attribute string.
        Returns:
        cid attribute string
      • equals

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

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

        public static ContentId fromSrc​(java.lang.String src)
        Get BoB hash from src attribute string.
        Parameters:
        src - TODO javadoc me please
        Returns:
        the BoB hash
      • fromCid

        public static ContentId fromCid​(java.lang.String cid)
        Get BoB hash from cid attribute string.
        Parameters:
        cid - TODO javadoc me please
        Returns:
        the BoB hash