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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def apply(stream: InputStream): Array[Byte]

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

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

    Calculates the SHA-1 hash of the given resource.

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

    Calculates the SHA-1 hash of the given file.

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

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

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

    Calculates the SHA-1 hash of the given String.

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. 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.

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. 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.

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def halfHashString(s: String): String

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

  20. 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.

  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toHex(bytes: Array[Byte]): String

    Converts an array of bytes to a hexadecimal representation String.

  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. 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.

  30. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped