Class Containers

java.lang.Object
com.carrotsearch.hppc.Containers

public final class Containers extends Object
Constants used as defaults in containers.
See Also:
  • Field Details

    • DEFAULT_EXPECTED_ELEMENTS

      public static final int DEFAULT_EXPECTED_ELEMENTS
      The default number of expected elements for containers.
      See Also:
    • testsSeedProperty

      private static String testsSeedProperty
      External initial seed value. We do not care about multiple assignments so not volatile.
      See Also:
    • NOT_AVAILABLE

      private static final String NOT_AVAILABLE
      Unique marker for testsSeedProperty.
  • Constructor Details

    • Containers

      private Containers()
  • Method Details

    • randomSeed64

      public static long randomSeed64()
      Provides a (possibly) random initial seed for randomized stuff. If tests.seed property is available and accessible, the returned value will be derived from the value of that property and will be constant to ensure reproducibility in presence of the randomized testing package.
      See Also:
      • "https://github.com/carrotsearch/randomizedtesting"
    • test$reset

      static void test$reset()
      Reset state for tests.