Enum Class DynamicIntArray.ClearingStrategy
java.lang.Object
java.lang.Enum<DynamicIntArray.ClearingStrategy>
ai.timefold.solver.core.impl.util.DynamicIntArray.ClearingStrategy
- All Implemented Interfaces:
Serializable,Comparable<DynamicIntArray.ClearingStrategy>,Constable
- Enclosing class:
- DynamicIntArray
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DynamicIntArray.ClearingStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL
The GC will be allowed to reclaim the array. This means that, on next access, the array will have to be reallocated and gradually resized, possibly leading to excessive GC pressure. This is the default. -
PARTIAL
The array will not be returned to GC and will be filled with zeros instead. This has no impact on GC, but may result in greater at-rest heap usage than strictly necessary.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-