I have two packages
uk.co.planetbeyond.data
and
uk.co.planetbeyond.data.bean
How can I make the classes present in uk.co.planetbeyond.data.bean visible to classes in parent package uk.co.planetbeyond.data but invisible in other packages?
Is it even possible?
As far as I’m aware, it’s not possible. While we tend to think of packages as forming a hierarchy, they don’t as far as the Java language is concerned.