blob: 7edfc3b25e860d6be25fbfd2dc175b86abc8ad88 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
package scala.collection.generic
/** A template for companion objects of Sequence and subclasses thereof.
*/
abstract class GenericSequenceFactory extends GenericTraversableFactory {
type Coll <: Sequence[_]
/** This method is called in a pattern match { case Sequence(...) => }.
*
* @param x the selector value
* @return sequence wrapped in an option, if this is a Sequence, otherwise none
*/
def unapplySeq[A](x: Coll with Sequence[A]): Some[Coll with Sequence[A]] = Some(x)
}
|