Internal implementation on public type (java)