assertImplementsInterfaceMethod

public static MethodLink assertImplementsInterfaceMethod(TypeLink link, MethodLink interfaceMethod, boolean strict)(source)

Asserts that an interface method is implemented in the given TypeLink. This method checks that the method has the correct signature and, if strict is true, that it has an @Override annotation.

Parameters

link

the TypeLink to check for the implementation

interfaceMethod

the MethodLink of the interface method

strict

whether to check for the @Override annotation


public static MethodLink assertImplementsInterfaceMethod(TypeLink link, MethodLink interfaceMethod)(source)

Asserts that an interface method is implemented in the given TypeLink. This method checks that the method has the correct signature and that it has an @Override annotation by calling assertImplementsInterfaceMethod with strict = true.

Parameters

link

the TypeLink to check for the implementation

interfaceMethod

the MethodLink of the interface method