1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
class Getter { boolean isNone; boolean isPrivate; boolean isPackage; boolean isProtected; boolean isPublic; private boolean isPrivate() { return isPrivate; } boolean isPackage() { return isPackage; } protected boolean isProtected() { return isProtected; } public boolean isPublic() { return isPublic; } }