SpoutDev/SpoutAPI — pull request #245 by bergerkiller (2012-06-06 21:30:37+00:00)
Title: Added and implemented new casting utilities

Signed-off-by: Irmo van den Berge

Made all casting use generics to cast to a certain type. Also included casting of lists. The data holder redirects calls to this class now. You will notice that a lot of functions in the data holder no longer have an use, because they simple redirect to a generic call which is pretty much the same length. I kept them in to remain compatibility, you can later on decide if you want to keep it or not.

Also made sure Boolean casting can actually return null when it is not a boolean, as it makes the default useless otherwise. I also added int boxing and unboxing, not sure where I want to go from there. Two collection utility functions were added to easily fill a collection with elements from an array, as Java is lacking that too.