test

public boolean test(Method method)

Checks whether the method is of the modifier determined by this instance.

Return

true if the method is declared with the expected modifier, false otherwise.

Parameters

method

the method to check