elki-project / elki

ELKI Data Mining Toolkit
https://elki-project.github.io/
GNU Affero General Public License v3.0
780 stars 321 forks source link

ArrayModifiableIntegerDBIDs.java has protected constructors #28

Closed saideepakb closed 7 years ago

saideepakb commented 7 years ago

Hi,

Is ArrayModifiableIntegerDBIDs supposed to be a non-public class with protected constructors? If yes, then how do we instantiate a new object of this class?

https://github.com/elki-project/elki/blob/master/elki-core-dbids-int/src/main/java/de/lmu/ifi/dbs/elki/database/ids/integer/ArrayModifiableIntegerDBIDs.java

Thanks, Deepak

cc: @anam282

kno10 commented 7 years ago

Yes, this is intentional.

The entire package is not meant to be used directly, but only through the interfaces.

This is stated clearly in the package documentation:

https://elki-project.github.io/releases/current/doc/de/lmu/ifi/dbs/elki/database/ids/integer/package-summary.html https://github.com/elki-project/elki/blob/master/elki-core-dbids-int/src/main/java/de/lmu/ifi/dbs/elki/database/ids/integer/package-info.java

Integer-based DBID implementation -- do not use directly - always use DBIDUtil.

anam282 commented 7 years ago

Thanks @kno10