Package edu.pdx.cs410J.j2se15
package edu.pdx.cs410J.j2se15
Contains examples of using the new Java lanaguage and API features that were introduced in J2SE version 1.5.
Resources
- Brian Goetz on Generics Gotchas
-
ClassDescriptionDemonstrates J2SE primitive data "autoboxing" features.This class demonstrates covariant returns in JDK 1.5.An animal that can be cloned.Demonstrates J2SE's "enhanced for loop" functionality.Demonstrates J2SE's "enumerated type" facility.This class demonstrates how generic collections can be used with legacy code that does not use generics.A "legacy" class that does not use generic collections.A grad studentA studentThis class demonstrates how updated domain classes that use generics can interact with legacy code that doesn't use generics.An updated domain class that uses genericsA grad studentA studentDemonstrates adding behavior to enumerated types.This class demonstrates the
Override
annotation.This class contains one method that is overridden in a subclass.Demonstrates J2SE's "static import" facility.Tuple<A,B> A tuple class that holds two generic values.Uses the genericTuple
class to return a host/port combination from a single method.