Re: Interfaces for domain objects?

From: Jeremias Maerki (de..eremias-maerki.ch)
Date: Wed May 13 2009 - 14:26:48 EDT

  • Next message: Jeremias Maerki: "Re: Interfaces for domain objects?"

    Looks like I still have a few things to learn about generics. Thanks a
    lot! Works fine.

    On 13.05.2009 19:27:07 Andrus Adamchik wrote:
    >
    > On May 12, 2009, at 4:40 AM, Jeremias Maerki wrote:
    >
    > > Collection<Representation> getRepresentations();
    >
    > Ain't Java generics fun. Here is the version of the same design that
    > will be allowed to compile:
    >
    > Interface: Collection<? extends Representation>
    > getRepresentations();
    > Implementation: Collection<RepresentationImpl> getRepresentations()
    > {..}
    >
    > Andrus

    Thanks,
    Jeremias Maerki (who's been doing Java 1.3 & 1.4 for that past 4 years)



    This archive was generated by hypermail 2.0.0 : Wed May 13 2009 - 14:27:21 EDT