Package com.carrotsearch.hppc
Class Containers
- java.lang.Object
-
- com.carrotsearch.hppc.Containers
-
public final class Containers extends java.lang.ObjectConstants used as defaults in containers.- See Also:
HashContainers
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_EXPECTED_ELEMENTSThe default number of expected elements for containers.private static java.lang.StringNOT_AVAILABLEUnique marker fortestsSeedProperty.private static java.lang.StringtestsSeedPropertyExternal initial seed value.
-
Constructor Summary
Constructors Modifier Constructor Description privateContainers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longrandomSeed64()Provides a (possibly) random initial seed for randomized stuff.(package private) static voidtest$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.seedproperty 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.
-
-