Class Containers


  • public final class Containers
    extends java.lang.Object
    Constants used as defaults in containers.
    See Also:
    HashContainers
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Containers()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long randomSeed64()
      Provides a (possibly) random initial seed for randomized stuff.
      (package private) static void test$reset()
      Reset state for tests.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_EXPECTED_ELEMENTS

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

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

        private static final java.lang.String NOT_AVAILABLE
        Unique marker for testsSeedProperty.
    • Constructor Detail

      • Containers

        private Containers()
    • Method Detail

      • 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.