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

VB Equivalent to Java Functional Interfaces

The closest VB equivalent to Java's functional interfaces are VB delegates.

Java VB
public interface FooFunctional
    void invoke();

public class UseFunctionalInterface
    void method()
        FooFunctional funcVar = () -> voidMethod();
    void voidMethod()
Public Delegate Sub FooFunctional()

Public Class UseFunctionalInterface
    Friend Overridable Sub method()
        Dim funcVar As FooFunctional = Sub() voidMethod()
    End Sub
    Friend Overridable Sub voidMethod()
    End Sub
End Class

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

Additional resource: VB.NET and Java Equivalents

Copyright © 1997 – 2018 Tangible Software Solutions Inc.