Java Generics and Collections

Java Generics and Collections
Author: Maurice Naftalin
Publisher: "O'Reilly Media, Inc."
Total Pages: 294
Release: 2007
Genre: Computers
ISBN: 0596527756

This book, written by one of the designers of generics, is a thorough explanation of how to use generics, and particularly, the effect this facility has on the way developers use collections.

Java Generics and Collections

Java Generics and Collections
Author: Maurice Naftalin
Publisher: "O'Reilly Media, Inc."
Total Pages: 287
Release: 2006-10-17
Genre: Computers
ISBN: 0596551509

This comprehensive guide shows you how to master the most importantchanges to Java since it was first released. Generics and the greatlyexpanded collection libraries have tremendously increased the power ofJava 5 and Java 6. But they have also confused many developers whohaven't known how to take advantage of these new features. Java Generics and Collections covers everything from the mostbasic uses of generics to the strangest corner cases. It teaches youeverything you need to know about the collections libraries, so you'llalways know which collection is appropriate for any given task, andhow to use it. Topics covered include: Fundamentals of generics: type parameters and generic methods Other new features: boxing and unboxing, foreach loops, varargs Subtyping and wildcards Evolution not revolution: generic libraries with legacy clients andgeneric clients with legacy libraries Generics and reflection Design patterns for generics Sets, Queues, Lists, Maps, and their implementations Concurrent programming and thread safety with collections Performance implications of different collections Generics and the new collection libraries they inspired take Java to anew level. If you want to take your software development practice toa new level, this book is essential reading. Philip Wadler is Professor of Theoretical Computer Science at theUniversity of Edinburgh, where his research focuses on the design ofprogramming languages. He is a co-designer of GJ, work thatbecame the basis for generics in Sun's Java 5.0. Maurice Naftalin is Technical Director at Morningside Light Ltd., a software consultancy in the United Kingdom. He has most recently served as an architect and mentor at NSB Retail Systems plc, and as the leader of the client development team of a major UK government social service system. "A brilliant exposition of generics. By far the best book on thetopic, it provides a crystal clear tutorial that starts with thebasics and ends leaving the reader with a deep understanding of boththe use and design of generics." Gilad Bracha, Java Generics Lead, Sun Microsystems

Java Generics and Collections

Java Generics and Collections
Author: Maurice Naftalin
Publisher:
Total Pages: 0
Release: 2023
Genre: Java (Computer program language)
ISBN:

Java Generics and Collections has been the go-to guide to generics for more than a decade. This second edition covers Java 21, providing a clear guide to generics from their most common uses to the strangest corner cases, giving you everything you need to know to use and write generic APIs effectively. It covers the collections library thoroughly, so you'll always know how and when to use each collection for any given task. And it explains stream processing, so you'll know which model to use and how they interoperate to get the best out of the platform library.

Java Collections

Java Collections
Author: John Zukowski
Publisher: Apress
Total Pages: 416
Release: 2008-01-01
Genre: Computers
ISBN: 1430208546

The Collections Framework is supplied with all versions of the Java 2 platform and provides programmers with incredibly efficient ways to manipulate data. However, given the large number of methods and classes in this library, using them correctly is hardly a cakewalk. Well-known columnist and bestselling author John Zukowski gives the Java professional exactly what he or she needs to know about this vital library in order to maximize productivity. This practical book contains comprehensive coverage of the important Collections Framework from the working programmer's point of view, while staying away from academic abstractions. Java Collections leads you through the standard Java support for maintaining abstract groups of data, from the historical collection classes available since the inception of Java time, through the Collections Framework introduced with the Java 2 platform, and on to third-party alternative libraries for times when the standard support isn't enough. If you're working with data in Java programs, you need to understand the Collections Framework. Let Zukowski's Java Collections be your guide! Table of Contents Java Collections Framework: An Overview Arrays The Vector and Stack Classes The Enumeration Interface The Dictionary, Hashtable, and Properties Classes The BitSet Class Collections Introduction Sets Lists Maps Sorting Special Collections Support Array Algorithm Support Custom Implementations Compatibility Issues Advanced Usages JGL Libraries util.concurrent Colt

Effective Java

Effective Java
Author: Joshua Bloch
Publisher: Addison-Wesley Professional
Total Pages: 375
Release: 2008-05-08
Genre: Computers
ISBN: 0132778041

Are you looking for a deeper understanding of the JavaTM programming language so that you can write code that is clearer, more correct, more robust, and more reusable? Look no further! Effective JavaTM, Second Edition, brings together seventy-eight indispensable programmer’s rules of thumb: working, best-practice solutions for the programming challenges you encounter every day. This highly anticipated new edition of the classic, Jolt Award-winning work has been thoroughly updated to cover Java SE 5 and Java SE 6 features introduced since the first edition. Bloch explores new design patterns and language idioms, showing you how to make the most of features ranging from generics to enums, annotations to autoboxing. Each chapter in the book consists of several “items” presented in the form of a short, standalone essay that provides specific advice, insight into Java platform subtleties, and outstanding code examples. The comprehensive descriptions and explanations for each item illuminate what to do, what not to do, and why. Highlights include: New coverage of generics, enums, annotations, autoboxing, the for-each loop, varargs, concurrency utilities, and much more Updated techniques and best practices on classic topics, including objects, classes, libraries, methods, and serialization How to avoid the traps and pitfalls of commonly misunderstood subtleties of the language Focus on the language and its most fundamental libraries: java.lang, java.util, and, to a lesser extent, java.util.concurrent and java.io Simply put, Effective JavaTM, Second Edition, presents the most practical, authoritative guidelines available for writing efficient, well-designed programs.

Learning Java

Learning Java
Author: Patrick Niemeyer
Publisher: "O'Reilly Media, Inc."
Total Pages: 836
Release: 2002
Genre: Computers
ISBN: 9780596002855

This updated edition introduces the basics of Java and everything necessary to get up to speed on the new 1.4 version quickly. CD contains the Java 2 SDK for Windows, Linux and Solaris.

Data Structures and the Java Collections Framework

Data Structures and the Java Collections Framework
Author: William Joseph Collins
Publisher:
Total Pages: 746
Release: 2002
Genre: Computers
ISBN:

This student-friendly book is designed for a course in data structures where the implementation language is Java. The focus is on teaching students how to apply the concepts presented, therefore many applications and examples are included, as well as programming projects, which get students thinking more deeply. The author shows students how to use the data structures provided in the Java Collections Framework, as well as teaching them how to build the code themselves. Using the Java Collections Framework gives the students the opportunity to work with fully tested code. Also, since this is a standard library of classes, students will be able to continue to use it for other courses and as they move into industry. Another feature of this text is that labs are provided with the book. They can be used as open-labs, closed labs, or homework assignments and are designed to give students hands-on experiences in programming. These optional labs provide excellent practice and additional material.

Java Collections

Java Collections
Author: David A. Watt
Publisher: John Wiley & Sons
Total Pages: 572
Release: 2001-03-30
Genre: Computers
ISBN:

A unique, practical approach to working with collection classes in Java 2 Software developers new to Java will find the practical, software-engineering based approach taken by this book extremely refreshing. With an emphasis more on software design and less on theory, Java Collections explores in detail Java 2 collection classes, helping programmers choose the best collection classes for each application they work on. Watt and Brown explore abstract data types (ADTs) that turn up again and again in software design, using them to provide context for the data structures required for their implementation and the algorithms associated with the data structures. Numerous worked examples, several large case studies, and end-of-chapter exercises are also provided.

Professional .NET 2.0 Generics

Professional .NET 2.0 Generics
Author: Tod Golding
Publisher: John Wiley & Sons
Total Pages: 386
Release: 2005-10-27
Genre: Computers
ISBN: 0471757691

The power and elegance of generic types have long beenacknowledged. Generics allow developers to parameterize data typesmuch like you would parameterize a method. This brings a newdimension of reusability to your types without compromisingexpressiveness, type-safety, or efficiency. Now .NET generics makesthis power available to all .NET developers. By introducing genericconcepts directly into the Common Language Runtime (CLR), Microsofthas also created the first language-independent genericsimplementation. The result is a solution that allows generic typesto be leveraged by all the languages of the .NET platform. This book explores all aspects of the .NET genericsimplementation, covering everything from fundamental genericconcepts, to the elements of generic syntax, to a broader view ofhow and when you might apply generics. It digs into the detailsassociated with creating and consuming your own generic classes,structures, methods, delegates, and interfaces, examining all thenuances associated with leveraging each of these languageconstructs. The book also looks at guidelines for working withgeneric types, the performance gains achieved with generics, thenew generic container libraries (BCL and third party), and keyaspects of the underlying .NET implementation. For those transitioning from C++, the book provides an in-depthlook at the similarities and differences between templates and.NETgenerics. It also explores the syntactic variations associated withusing generics with each of the .NET languages, including C#,Visual Basic, J#, and C++.