Say you wish to process collections. Some may be collections of bytes, others collections of strings, and yet others collections of collections of strings. The Java programming language supports such variation by allowing you to form a collection of Object, so the elements may have any reference type. In order to keep the language simple, you are forced to do some of the work yourself: you must keep track of the fact that you have a collection of bytes, and when you extract an element from the collection you must cast it to class Byte before further processing. parameters…
Download PDF for GJ: Extending the Java Programming Language with Type Tutorial
Related Searches: java programming language, byte, collections, parameters, variation
RSS feed for comments on this post · TrackBack URI
Leave a reply