| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Articles Presentations | Tutorials |
- Towards Bug-Free Code by Ashwin Jayaprakash - [Clicks: 43]
Ashwin Jayaprakash shows how generics can be used in support of loose-coupling, which makes your code more testable.
[Includes sample code]
http://www.onjava.com/pub/a/onjava/2004/12/22/towardsbugfree.html - Dec, 2004 - Using and Programming Generics in J2SE 5.0 by Qusay H. Mahmoud - [Clicks: 94]
Generics are one of the most frequently requested language extensions to Java, and they have been finally added in J2SE 5.0. This article provides an introduction to programming with generics.
http://java.sun.com/developer/technicalArticles/J2SE/generics/ - Oct, 2004 - Enforce strict type safety with generics by Conan Dalton - [Clicks: 37]
Java generics are the exciting new feature of Java 5 (renamed from J2SE 1.5) due for release shortly. Much controversy surrounds generics. In fact, Sam Pullara suggests that generics are just a really complicated way of implementing autocasting. In this article, Conan Dalton attempts to present one of the bright sides of generics: the ability to enforce stricter type safety—in particular, a kind of type safety that can not be achieved with autocasting. Dalton uses a simple but reusable event-dispatching mechanism for an example and compares a generics-aware implementation with a non-generics-aware implementation. He explains some of the more obtuse elements of the new Java syntax and, in conclusion, suggests that generics may have a different impact depending on whether you are an API client or an API developer.
[Includes source code]
http://www.javaworld.com/javaworld/jw-09-2004/jw-0920-generics.html - Sep, 2004 - Taming Tiger, Part 2 by Tarak Modi - [Clicks: 21]
The Java 2 Platform, Standard Edition (J2SE) 1.5 contains new and exciting features, many of which have been long awaited for by Java programmers. J2SE 1.5—code named "Tiger"—is the most significant revision to the Java language since its original inception. Tarak Modi's primary goal with his three-part series on Tiger is to familiarize readers with J2SE 1.5's most important additions and show how to capitalize on these additions in the real world. In Part 2, he introduces generics.
http://www.javaworld.com/javaworld/jw-06-2004/jw-0607-tiger2.html - Jun, 2004 - Permitting a Broader Argument Range by Klaus Kreft, Angelika Langer - [Clicks: 12]
Java Generics in J2SE 1.5 offers a wildcards language construct. Learn how to use three types of wildcards as arguments for parameterized types in Part 2 of this two-part article.
http://www.ftponline.com/javapro/2004_05/online/kkreft_05_19_04/ - May, 2004 - Wildcard Instantiations of Parameterized Types by Klaus Kreft, Angelika Langer - [Clicks: 23]
This is part 1 of a two-part article that explains the purpose and use of the wildcards language construct in Java Generics, an important feature available in J2SE 1.5 that is slated for full release later this year. Part 2 will cover using wildcard instantiations and looks at some of their limitations.
http://www.ftponline.com/javapro/2004_05/online/kkreft_05_12_04/ - May, 2004 - Implementing Java Generics by Klaus Kreft, Angelika Langer - [Clicks: 31]
... This is the second of two installments presenting an overview of Java Generics, a new language feature that will be supported in the upcoming release of Java 2 Platform, Standard Edition 1.5. ... This concluding installment will look at generic treatment of methods as well as implementation and use of Java Generics.
http://www.ftponline.com/javapro/2004_03/online/j2ee_kkreft_03_10_04/ - Mar, 2004 - Language Features of Java Generics by Klaus Kreft, Angelika Langer - [Clicks: 27]
This is the first of two installments presenting an overview of Java Generics, a new language feature that will be supported in the upcoming release of Java 2 Platform, Standard Edition 1.5. This first installment discusses Java collections and generic treatment of types and classes. The concluding installment will look at generic treatment of methods as well as implementation and use of Java Generics.
http://www.ftponline.com/javapro/2004_03/online/jgen_kkreft_03_03_04/ - Mar, 2004 - Explorations: Wildcards in the Generics Specification by William Grosso - [Clicks: 24]
William Grosso discusses wildcards, a recent addition to the generics specification: sometimes you don't want to precisely specify the value for a type parameter.
http://today.java.net/pub/a/today/2004/01/15/wildcards.html - Jan, 2004
- Collections and Generics in J2SE 1.5 by Dean Wette - [Clicks: 63]
The Collections API is arguably one of the most important enhancements to Java introduced in the first version of the Java 2 Standard Edition (J2SE 1.2). It supports creation and management of object containers, as well as common operations for manipulating collections of objects as a whole. It promotes good OO practices and reduces programming effort by providing common data structures and algorithms used in most software systems, leaving developers more time to focus on the unique details of a development project. J2SE 1.5 introduces another major enhancement intended to improve on the Collections API, with the addition of generics for supporting parametric polymorphism in object containers. But is Java Generics really an improvement? Some believe it's syntactic candy that tries to solve problems that don't really exist, while adding uneccessary complexity? Other's think it's a great enhancement that's been needed for a long time. What will you think? This session will help lead you to decide what is the good, the bad, and the ugly. It examines the Collections API, pros and cons of Java Generics, and other new features that provide new ways to use object collections in Java.
[Formats: PDF]
http://www.ociweb.com/javasig/knowledgebase/2004-05/index.html - May, 2004
- Introduction to generic types in JDK 5.0 by Brian Goetz - [Clicks: 94]
This tutorial introduces generic types, a new feature in JDK 5.0 that lets you define classes with abstract type parameters that you specify at instantiation time. Generics increase the type safety and maintainability of large programs. Follow along with frequent developerWorks contributor and Java programming expert Brian Goetz, as he explains the motivation for adding generics to the Java language, details the syntax and semantics of generic types, and provides an introduction to using generics in your classes.
[Formats: HTML, PDF, Zip]
http://www-106.ibm.com/developerworks/edu/j-dw-java-generics-i.html?S_TACT=104AHW02 - Dec, 2004 - Generics in the Java Programming Language by Gilad Bracha - [Clicks: 68]
This tutorial introduces you to using generics, a long-awaited enhancement to the type system that allows a type or method to operate on objects of various types while providing compile-time type safety. Generics are similar to C++ templates, but with some important differences that the tutorial points out.
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf - Feb, 2004 - (PDF - 65 Kb)