scalacheck

class Arbitrary

[source: scalacheck/Arbitrary.scala]

abstract class Arbitrary[T]
extends AnyRef
The Arbitrary[T] class represents a type T that can be instantiated arbitrarily. To make your own "instance" of the Arbitrary class for a type T, define an implicit function that takes a value of type Arb[T] and returns a value of type Arbitrary[T]. The Arb[T] value has no meaning in itself, its just there to make type inference work a bit better. Do not try to use the Arb[T] value in your implicit function, it will always be null.
Method Summary
protected abstract def getArbitrary : Gen[T]
protected def getShrink (x : T) : Stream[T]
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
protected abstract def getArbitrary : Gen[T]

protected def getShrink(x : T) : Stream[T]