From a0877d81ca2844d75dc361b5ce7c99afacd6e25f Mon Sep 17 00:00:00 2001 From: vlad Date: Thu, 25 Jan 2018 14:12:31 -0800 Subject: Extracting query library --- .../synchronization/utils/FakeIdGen.scala | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/main/scala/xyz/driver/pdsuicommon/synchronization/utils/FakeIdGen.scala (limited to 'src/main/scala/xyz/driver/pdsuicommon/synchronization/utils/FakeIdGen.scala') diff --git a/src/main/scala/xyz/driver/pdsuicommon/synchronization/utils/FakeIdGen.scala b/src/main/scala/xyz/driver/pdsuicommon/synchronization/utils/FakeIdGen.scala deleted file mode 100644 index 196aab1..0000000 --- a/src/main/scala/xyz/driver/pdsuicommon/synchronization/utils/FakeIdGen.scala +++ /dev/null @@ -1,26 +0,0 @@ -package xyz.driver.pdsuicommon.synchronization.utils - -import xyz.driver.pdsuicommon.synchronization.domain.FakeId - -/** - * Used to generate a fake id from an entity. - * A fake id is used in comparison between entities with different types, - * for example, RawTrial and Trial. - * - * @see FakeId - */ -trait FakeIdGen[-T] extends (T => FakeId) { - - def getFor(x: T): FakeId - - override def apply(x: T): FakeId = getFor(x) - -} - -object FakeIdGen { - - def create[T](f: T => FakeId) = new FakeIdGen[T] { - override def getFor(x: T): FakeId = f(x) - } - -} -- cgit v1.2.3