Fields which satisfy JavaBean specification – BeanProperties in Scala

scala-thumbnail

We have seen previously about declaring fields in classes in Scala and also saw the kind of bytecode created for each of the cases. But lot of Java tools out there expect the fields in classes to follow the JavaBeans specification and in order to support that Scala provides @BeanProperty annotation. also read: Primary and […]

Understanding Classes and its Fields in Scala

scala-thumbnail

For those moving from Java to Scala would find it a bit different to see how the classes and their fields are treated in Scala. Most of you in the Java world always complain about the verbosity of adding fields and then to add their getters and setters. Lets look at how the Classes and […]

Java HelloWorld vs Scala HelloWorld

scala-thumbnail

As a first step into learning Scala and as one who is familiar with Java, let us compare the customary Helloworld programs in Java and Scala. You might already know that to run a Java program, there must be a public class with a main method that takes one parameter, a String[ ], and has a void […]

Handling/Avoiding Null’s in Java using Guava versus Scala

java-thumbnail

There was a discussion about nulls in the latest episode of JavaPosse. Having been inspired from that discussion and with an urge to check out Google Guava library, I came across a way to handle Null’s in Guava which is very similar to the way Scala handles. also read: Java Tutorials Java EE Tutorials Design […]

HelloWorld with Netbeans 7.2 beta and Scala 2.9

image003

Here is the step by step procedure to set up the scala(2.9) environment with Netbeans(7.2) on a Windows Vista system 1. Install Netbeans 7.2 Beta if not already installed from here. 2. Download the Scala installable from here. Install Scala on your system. 3. Set the environment variable SCALA_HOME pointing it to the Scala installation directory. (On Windows […]

Examining Functional Concepts in Google Collections using Scala

scala-thumbnail

This article is based on Scala in Action , to be published on Fall 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) eBooks and pBooks. MEAPs are sold exclusively through Manning.com. All pBook purchases include free PDF, mobi and epub. When mobile formats become available […]

Methods and Pattern Matching in Scala

scala-thumbnail

This article is based on Scala in Action , to be published on Fall 2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) eBooks and pBooks. MEAPs are sold exclusively through Manning.com. All pBook purchases include free PDF, mobi and epub. When mobile formats become available […]

Close
Please support the site
By clicking any of these buttons you help our site to get better