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 intThe default number of expected elements for containers.private static final StringUnique marker fortestsSeedProperty.private static StringExternal initial seed value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longProvides a (possibly) random initial seed for randomized stuff.(package private) static voidReset 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.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:
-
test$reset
static void test$reset()Reset state for tests.
-