Package com.carrotsearch.hppc
Class Containers
java.lang.Object
com.carrotsearch.hppc.Containers
Constants used as defaults in containers.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default number of expected elements for containers.private static final String
Unique marker fortestsSeedProperty
.private static String
External initial seed value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
Provides a (possibly) random initial seed for randomized stuff.(package private) static void
Reset state for tests.
-
Field Details
-
DEFAULT_EXPECTED_ELEMENTS
public static final int DEFAULT_EXPECTED_ELEMENTSThe default number of expected elements for containers.- See Also:
-
testsSeedProperty
External initial seed value. We do not care about multiple assignments so not volatile.- See Also:
-
NOT_AVAILABLE
Unique marker fortestsSeedProperty
.
-
-
Constructor Details
-
Containers
private Containers()
-
-
Method Details
-
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:
-
test$reset
static void test$reset()Reset state for tests.
-