Package com.carrotsearch.hppc
Class Containers
- java.lang.Object
-
- com.carrotsearch.hppc.Containers
-
public final class Containers extends java.lang.Object
Constants used as defaults in containers.- See Also:
HashContainers
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_EXPECTED_ELEMENTS
The default number of expected elements for containers.private static java.lang.String
NOT_AVAILABLE
Unique marker fortestsSeedProperty
.private static java.lang.String
testsSeedProperty
External initial seed value.
-
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.
-
-
-
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 fortestsSeedProperty
.
-
-
Method Detail
-
randomSeed64
public static long randomSeed64()
Provides a (possibly) random initial seed for randomized stuff. Iftests.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.
-
-