Documentation API of the 'cern.colt.map.PrimeFinder' Java class
PrimeFinder
cern.colt.map

Class PrimeFinder



  • public class PrimeFinderextends Object
    Not of interest for users; only for implementors of hashtables. Used to keep hash table capacities prime numbers.

    Choosing prime numbers as hash table capacities is a good idea to keep them working fast, particularly under hash table expansions.

    However, JDK 1.2, JGL 3.1 and many other toolkits do nothing to keep capacities prime. This class provides efficient means to choose prime capacities.

    Choosing a prime is O(log 300) (binary search in a list of 300 int's). Memory requirements: 1 KB static memory.

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.