Changes for page WebObjects with Scala
Last modified by Ravi Mendis on 2011/05/10 02:10
From version 370.1
edited by Ravi Mendis
on 2009/12/08 19:02
on 2009/12/08 19:02
Change comment:
There is no comment for this version
To version 368.1
edited by Ravi Mendis
on 2009/12/02 00:05
on 2009/12/02 00:05
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -53,7 +53,7 @@ 53 53 54 54 {{code}} 55 55 56 -public class _Talent extends EOGenericRecord {56 +public class Talent extends EOGenericRecord { 57 57 public static final String ENTITY_NAME = "Talent"; 58 58 59 59 {{/code}} ... ... @@ -62,7 +62,7 @@ 62 62 63 63 {{code}} 64 64 65 -object Talent extends EOGenericRecord { 65 +object Talent extends EOGenericRecord { 66 66 val ENTITY_NAME = "Talent" 67 67 68 68 {{/code}} ... ... @@ -155,14 +155,6 @@ 155 155 156 156 {{/code}} 157 157 158 -==== Scala Annotations vs. Generic Accessors ==== 159 - 160 -An example of accessing variables in the following languages: 161 - 162 -|= |= Objective-C |= Java |= Scala 163 -|= getter | {{code}}[object name]{{/code}} | {{code}}object.getName(){{/code}} | {{code}}object.name{{/code}} 164 -|= setter | {{code}}[object setName:aName]{{/code}} | {{code}}object.setName(aName){{/code}} | {{code}}object.name = aName{{/code}} 165 - 166 166 == How to Use Scala Collections with EOF == 167 167 168 168 One of the benefits of Scala is its very powerful, concurrency-ready collection classes - primarily ##List##, ##Map##, ##Seq## and ##Set##.