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

public static enum DynamicIntArray.ClearingStrategy extends Enum<DynamicIntArray.ClearingStrategy>
  • Enum Constant Details

    • FULL

      public static final DynamicIntArray.ClearingStrategy 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

      public static final DynamicIntArray.ClearingStrategy 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

      public static DynamicIntArray.ClearingStrategy[] 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

      public static DynamicIntArray.ClearingStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null