SeedExtractor

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[V](implicit extractor: SeedExtractor[V]): SeedExtractor[V]
def extract[V](input: V)(implicit seeder: SeedExtractor[V]): Long
def from[A, B : SeedExtractor](fn: A => B): SeedExtractor[A]
def fromLong[A](fn: A => Long): SeedExtractor[A]

Implicits

Inherited implicits

implicit def fromToString[S]: SeedExtractor[S]

The toString method is a good default for almost all types because it is either going to be unique per instance of an object with no overriding definition of it (i.e. not a case class) OR it will be something like a tuple / case class which overrides the definition in such a way that two equal objects will have the same value from calling toString.

The toString method is a good default for almost all types because it is either going to be unique per instance of an object with no overriding definition of it (i.e. not a case class) OR it will be something like a tuple / case class which overrides the definition in such a way that two equal objects will have the same value from calling toString.

Note:

this is low priority to avoid collisions with other shared implicit definitions.

Inherited from:
DefaultSeedExtractors
implicit lazy val int: SeedExtractor[Int]
Inherited from:
DefaultSeedExtractors
implicit lazy val long: SeedExtractor[Long]
Inherited from:
DefaultSeedExtractors
implicit val string: SeedExtractor[String]

Extract a deterministic and collision-resistant number from the given string.

Extract a deterministic and collision-resistant number from the given string.

Creates a name-based UUID and extracts the most significant digits of the MD5 hash.

Inherited from:
DefaultSeedExtractors
implicit val uuid: SeedExtractor[UUID]

Uses the most significant digits of the UUID as the seed.

Uses the most significant digits of the UUID as the seed.

Inherited from:
DefaultSeedExtractors