• Saves Valuable Time
  • Trusted Accuracy for 12 Years
  • 15-Day Money-Back Guarantee

Java Equivalent to VB Parameterized Properties

VB allows defining non-indexer properties which take parameters:

VB Java (no direct equivalent)
Public Property ParameterizedTest(i As Integer, j As Integer) As Integer
    Get
        Return GetFoo(i, j)
    End Get
    Set(ByVal Value As Integer)
        SetFoo(i, j, Value)
    End Set
End Property
public int getParameterizedTest(int i, int j)
{
    return GetFoo(i, j);
}
public void setParameterizedTest(int i, int j, int Value)
{
    SetFoo(i, j, Value);
}


Use VB to Java Converter to convert from VB.NET to Java.     


Copyright © 1997 – 2017 Tangible Software Solutions Inc.