Created
June 24, 2012 23:08
-
-
Save actsasbuffoon/2985422 to your computer and use it in GitHub Desktop.
Trying to create a collection of classes. Not going too well.
This file contains 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
class TableDefinition(val name: String, val columns: Map[String, Class]) { | |
} | |
object TableDefinition { | |
val table_definitions = collection.mutable.Map[String, TableDefinition]() | |
def register(name: String, attributes: Map[String, Class]) { | |
TableDefinition.register(new TableDefinition(name, attributes) ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment