Lombok's Data classes are very much like Scala's case classes, although
Scala's version is richer.

In addition to the constructor, toString, equals, hashcode and accessors,
they add support for Scala's Product trait, the copy method, and the
canEqual method.  Being Scala, you also get to use them when pattern
matching.

See here for more info on canEqual:
http://www.artima.com/lejava/articles/equality.html


On 21 September 2010 08:04, Jess Holle <[email protected]> wrote:

>  I thought it was supposed to be like Scala's case classes, but the info
> was actually quite sparse as to what these were.
>
>
> On 9/20/2010 10:43 PM, Serge Boulay wrote:
>
> and also here. I thought it might be properties until I saw that explicitly
> listed too.
>
>  "They also introduced the concept of reification, value classes and the
> long awaited properties."
>
>
> http://www.dzone.com/links/r/jdk_7_and_java_se_7_session_new_features.html
>
> 2010/9/20 Cédric Beust ♔ <[email protected]>
>
>> First time I hear about it, I don't think it ever got mentioned a single
>> time on the Coin mailing-list. It sounds like it might be property support?
>>
>>  Where did you get this information?
>>
>>  --
>> Cédric
>>
>>
>>  On Mon, Sep 20, 2010 at 7:22 PM, Serge Boulay <[email protected]>wrote:
>>
>>>  *"Mark Reinhold brought up  the concept of a "value" keyword that would
>>> allow for significant suppression of the boilerplate code for data/value
>>> classes."*
>>>
>>> I couldn't attend javaone, does anyone know if Mark posted a code sample
>>> or what the "value" keyword is or what it would look like?
>>>  --
>>>  You received this message because you are subscribed to the Google
>>> Groups "The Java Posse" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<javaposse%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/javaposse?hl=en.
>>>
>>
>>
>>
>> --
>> Cédric
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "The Java Posse" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<javaposse%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/javaposse?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>



-- 
Kevin Wright

mail / gtalk / msn : [email protected]
pulse / skype: kev.lee.wright
twitter: @thecoda

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to