|
What this is
Other links
The source codepackage p; class TestDelegateCreationA { int b; } public class TestDelegateCreation extends TestDelegateCreationA{ String a[]; public static class FooParameter { private String[] newA; private int newB; private double newD; public FooParameter(String[] newA, int newB, double newD) { this.newA = newA; this.newB = newB; this.newD = newD; } public String[] getNewA() { return newA; } public void setNewA(String[] newA) { this.newA = newA; } public int getNewB() { return newB; } public void setNewB(int newB) { this.newB = newB; } public double getNewD() { return newD; } public void setNewD(double newD) { this.newD = newD; } } /** * @deprecated Use {@link #foo(FooParameter)} instead */ public void foo(String[] a, int b, double d){ foo(new FooParameter(a, b, d)); } public void foo(FooParameter parameterObject){ double d = parameterObject.getNewD(); int b = parameterObject.getNewB(); String[] a = parameterObject.getNewA(); a=new String[0]; d=5.7; b=6; } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 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.