I have a stateless abstract base class that should not be inherited from outside of its package:
package foo;
public abstract class Foo
{
    // some abstract methods
    // one concrete method
    // no state
    // Prevent classes outside of package foo from inheriting
    Foo()
    {
    }
}
Now that Java 8 supports default methods in interfaces, I would like to convert the abstract class to an interface. With interfaces, is it also possible to prevent inheritance outside of the current package?
 
    