diff options
author | Aleksandar Prokopec <axel22@gmail.com> | 2012-06-07 14:26:35 +0200 |
---|---|---|
committer | Aleksandar Prokopec <axel22@gmail.com> | 2012-06-07 19:21:45 +0200 |
commit | 881641f83461b5fc23ab25d1efa08b7a760a3363 (patch) | |
tree | 5ed07883b14c77d6020c2e99e50f3407587495e6 /src/library/scala/collection/LinearSeqLike.scala | |
parent | 6cdb6b0299cb917ac3df9e39aa932bacdc31faf9 (diff) | |
download | scala-881641f83461b5fc23ab25d1efa08b7a760a3363.tar.gz scala-881641f83461b5fc23ab25d1efa08b7a760a3363.tar.bz2 scala-881641f83461b5fc23ab25d1efa08b7a760a3363.zip |
Add the first iteration of the `util.hashing` package.
Move `MurmurHash3` to `util.hashing`.
Make the `class` private and retain a public companion
`object`, and put the `MurmurHash3.Hashing` implementations
for various types in the companion.
Add a method which composes `ByteswapHashing` with some other hashing.
Rename `hashOf` to `hash`.
Fix chi-square test in a test-case.
Review by @jsuereth.
Moved a failing test that seems to use some other library version to pending.
Diffstat (limited to 'src/library/scala/collection/LinearSeqLike.scala')
-rw-r--r-- | src/library/scala/collection/LinearSeqLike.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/LinearSeqLike.scala b/src/library/scala/collection/LinearSeqLike.scala index ceb980ff80..bfe27ef94a 100644 --- a/src/library/scala/collection/LinearSeqLike.scala +++ b/src/library/scala/collection/LinearSeqLike.scala @@ -50,7 +50,7 @@ trait LinearSeqLike[+A, +Repr <: LinearSeqLike[A, Repr]] extends SeqLike[A, Repr def seq: LinearSeq[A] - override def hashCode() = util.MurmurHash3.seqHash(seq) // TODO - can we get faster via "linearSeqHash" ? + override def hashCode() = util.hashing.MurmurHash3.seqHash(seq) // TODO - can we get faster via "linearSeqHash" ? override /*IterableLike*/ def iterator: Iterator[A] = new AbstractIterator[A] { |