Generics (JSR 014)

View: [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ]

Articles
  

Articles:
  • Java Tech: Generics and You by Jeff Friesen   - [Clicks: 48]
    Put your generics knowledge to the test with this 20-question quiz on J2SE 5.0 generics.
    http://today.java.net/pub/a/today/2005/11/10/generics-and-you.html - Nov, 2005
  • Classworking toolkit: Reflecting generics by Dennis M. Sosnoski   - [Clicks: 36]
    Java 5 extended the Java language type system to support parameterized types for classes, methods, and values. Parameterized types provide important compile-time advantages by enforcing proper type usage and eliminating casts from source code. Beyond these compile-time benefits, the type information can also be useful for classworking tools manipulating Java code. In this article, JiBX lead developer Dennis Sosnoski looks at how to use reflection to dig beneath the surface of parameterized types and reveal the full glory of Java 5 application data structures.
    [Includes sample code]
    http://www-128.ibm.com/developerworks/java/library/j-cwt11085.html - Nov, 2005
  • Creating Custom Generic Collections with J2SE 5.0 by Jeff Heaton   - [Clicks: 29]
    J2SE 5.0 introduced many additions to the collections API that you need to be aware of to properly implement generic custom collections that work seamlessly with multiple types and the new "for each" construct.
    [Includes sample code]
    http://www.devx.com/Java/Article/29511 - Oct, 2005
  • Get Familiar with J2SE 5.0 Collections by Jeff Heaton   - [Clicks: 27]
    Although you may be completely at ease with Java collections in previous versions, J2SE 5.0 collections are both simpler and different, requiring less code -- but altered programming techniques.
    [Includes sample classes]
    http://www.devx.com/Java/Article/29207 - Sep, 2005
  • Generics in J2SE 5.0 by Budi Kurniawan   - [Clicks: 54]
    This article teaches you to use and write generic types. It starts with the section "Life without Generics," which reminds us what we missed in earlier versions of JDKs. Then, it presents some examples of generic types. After the discussions of the syntax and the use of generic types with bounds, this article concludes with a section that explains how to write generic types.
    http://www.onjava.com/pub/a/onjava/2005/07/06/generics.html - Jul, 2005
  • Generic Types, Part 2 by David Flanagan   - [Clicks: 37]
    Editor's note: In part one of this two-part excerpt from Java in a Nutshell, 5th Edition, David Flanagan described how to use generic types. This week David details how to write your own generic types and generic methods, and concludes with a tour of important generic types in the core Java API.
    [O'Reilly Book Excerpts: Java in a Nutshell, 5th Edition]
    http://www.onjava.com/pub/a/onjava/excerpt/javaian5_chap04/index1.html - May, 2005
  • Generic Types, Part 1 by David Flanagan   - [Clicks: 51]
    Editor's note: Java in a Nutshell, 5th Edition covers the extensive changes and new features in 5.0, chief among them generic types. In part one, author David Flanagan walks through how to use generic types, and in part two next week, he covers how to write your own generic types and generic methods.
    [O'Reilly Book Excerpts: Java in a Nutshell, 5th Edition]
    http://www.onjava.com/pub/a/onjava/excerpt/javaian5_chap04/index.html - Apr, 2005
  • Generics in J2SE by Richard G. Baldwin   - [Clicks: 21]
    Learn about the compile-time type safety provided by generics in J2SE 5.0. Along the way, you will also learn about the enhanced for loop in J2SE 5.0.
    http://www.developer.com/java/other/article.php/3495121 - Apr, 2005
  • Generics by John Zukowski   - [Clicks: 23]
    The 5.0 release of J2SE includes the first set of significant language-level changes to the Java platform in some time. In addition to new constructs for things such as the enhance for loop and variable argument lists, J2SE 5.0 provides compile-time type safety with the Java Collections framework through generics in accordance with JSR-14: Add Generic Types To The Java Programming Language.
    http://java.sun.com/developer/JDCTechTips/2005/tt0315.html#1 - Mar, 2005
  • Java theory and practice: Generics gotchas by Brian Goetz   - [Clicks: 35]
    Generic types, added in JDK 5.0, are a significant enhancement to type safety in the Java language. However, some aspects of generics may seem confusing, or even downright bizarre, to first-time users. In this month's Java theory and practice, Brian Goetz examines the common pitfalls that ensnare first-time users of generics.
    http://www-106.ibm.com/developerworks/java/library/j-jtp01255.html - Jan, 2005

[Top]