is

public boolean is(Visibility visibility)

Checks if the visibility is exactly of the given level.

Return

true if this visibility is equal to the given visibility

Parameters

visibility

the visibility to compare to

Throws

if the given visibility is DEFAULT