Last active
March 30, 2016 16:30
-
-
Save jonvuri/ee29cb87ac4b4f3532555fcee0b39a3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val managerOne: ManagerGetter[Manager[One]] = getManager(oneParam) | |
| managerOne.get().write(one.key, one) | |
| managerOne.flush() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // getManager(param: String): Manager[T] | |
| // val one: One | |
| // val two: Two | |
| // val three: Three | |
| // val four: Four | |
| // ? | |
| def write(t: T) = { | |
| // ? | |
| } | |
| val managerOne = getManager(oneParam) | |
| (managerOne.get(): Manager[One]).write(one.key, one) | |
| managerOne.flush() | |
| val managerTwo = getManager(twoParam) | |
| (managerTwo.get(): Manager[Two]).write(two.key, two) | |
| managerTwo.flush() | |
| val managerThree = getManager(threeParam) | |
| (managerThree.get(): Manager[Three]).write(three.key, three) | |
| managerThree.flush() | |
| val managerFour = getManager(fourParam) | |
| (managerFour.get(): Manager[Four]).write(four.key, four) | |
| managerFour.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment