home | career | drupal | java | mac | mysql | perl | scala | uml | unix

Groovy example source code file (OuterUser.java)

This example Groovy source code file (OuterUser.java) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Groovy tags/keywords

inneraddress, inneraddress, integer, integer, outeruser, street, street, string, string

The Groovy OuterUser.java source code

package groovy;

/**
 * <p>Sample class used for testing that groovy can call inner classes constructors.

* * @author Guillaume Laforge * @cvs.revision $Revision: 8695 $ */ public class OuterUser { private String name; private Integer age; public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getAge() { return age; } public void setAge(Integer age) { this.age = age; } public static class InnerAddress { private String city; private Integer zipcode; public String getCity() { return city; } public void setCity(String city) { this.city = city; } public Integer getZipcode() { return zipcode; } public void setZipcode(Integer zipcode) { this.zipcode = zipcode; } public static class Street { private String name; private int number; public String getName() { return name; } public void setName(String name) { this.name = name; } public int getNumber() { return number; } public void setNumber(int number) { this.number = number; } } } }

Other Groovy examples (source code examples)

Here is a short list of links related to this Groovy OuterUser.java source code file:

new blog posts

 

Copyright 1998-2014 Alvin Alexander, alvinalexander.com
All Rights Reserved.