diff options
author | Martin Odersky <odersky@gmail.com> | 2011-01-16 21:22:36 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-01-16 21:22:36 +0000 |
commit | 3414335ced07828aef1f50e1e61384c026391376 (patch) | |
tree | 2d208478621d3efd12a0890db28b0d69ae7184fb | |
parent | 5e6f7952d7b92bdc58b763670899441aa8587fa4 (diff) | |
download | scala-3414335ced07828aef1f50e1e61384c026391376.tar.gz scala-3414335ced07828aef1f50e1e61384c026391376.tar.bz2 scala-3414335ced07828aef1f50e1e61384c026391376.zip |
Added doc comment
-rw-r--r-- | src/library/scala/collection/SeqLike.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/library/scala/collection/SeqLike.scala b/src/library/scala/collection/SeqLike.scala index 68adc13c14..cfcf100122 100644 --- a/src/library/scala/collection/SeqLike.scala +++ b/src/library/scala/collection/SeqLike.scala @@ -880,6 +880,12 @@ trait SeqLike[+A, +Repr] extends IterableLike[A, Repr] { self => */ override def hashCode() = (Seq.hashSeed /: this)(_ * 41 + _.##) + /** The equals method for arbitrary sequences. Compares this sequence to + * some other object. + * @param that The object to compare the sequence to + * @return `true` if `that` is a sequence that has the same elements as + * this sequence in the same order, `false` otherwise + */ override def equals(that: Any): Boolean = that match { case that: Seq[_] => (that canEqual this) && (this sameElements that) case _ => false |