|
Groovy example source code file (OuterUser.java)
The Groovy OuterUser.java source codepackage 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: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.