• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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
        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.     

Additional resource: VB.NET and Java Equivalents

Copyright © 2004 – 2021 Tangible Software Solutions, Inc.