o

sbt.io

Hash

object Hash

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Hash
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(stream: InputStream): Array[Byte]

    Calculates the SHA-1 hash of the given stream, closing it when finished.

  5. def apply(url: URL): Array[Byte]

    Calculates the SHA-1 hash of the given resource.

  6. def apply(file: File): Array[Byte]

    Calculates the SHA-1 hash of the given file.

  7. def apply(as: Array[Byte]): Array[Byte]

    Calculates the SHA-1 hash of the given Array[Byte].

  8. def apply(s: String): Array[Byte]

    Calculates the SHA-1 hash of the given String.

  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def contentsIfLocal(uri: URI): Array[Byte]

    If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file.

    If the URI represents a local file (the scheme is "file"), this method calculates the SHA-1 hash of the contents of that file. Otherwise, this methods calculates the SHA-1 hash of the normalized string representation of the URI.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromHex(hex: String): Array[Byte]

    Converts the provided hexadecimal representation hex to an array of bytes.

    Converts the provided hexadecimal representation hex to an array of bytes. The hexadecimal representation must have an even number of characters in the range 0-9, a-f, or A-F.

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def halfHashString(s: String): String

    Computes the SHA-1 hash of s and truncates the hexadecimal representation of the hash via halve.

  18. def halve(s: String): String

    Truncates the last half of s if the string has at least four characters.

    Truncates the last half of s if the string has at least four characters. Otherwise, the original string is returned.

  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toHex(bytes: Array[Byte]): String

    Converts an array of bytes to a hexadecimal representation String.

  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def trimHashString(s: String, i: Int): String

    Computes the SHA-1 hash of s and returns the first i characters of the hexadecimal representation of the hash.

  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped