cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Interfaces for domain objects?
Date Wed, 13 May 2009 17:27:07 GMT

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

Mime
View raw message