Class ProtectedExternally


  • public class ProtectedExternally
    extends None
    A method which may be implemented/overridden from anywhere, including super calls, but may not be otherwise called outside the source module. Akin to using the protected modifier but allowing “package” access elsewhere in the same package root, and also supporting interface methods. Note that Restricted is not Inherited so this only protects attempted accesses via the defining type; you will generally also want to restrict the implementations (for example as DoNotUse).
    Since:
    FIXME