Enum Class SparseBitSet.Statistics

java.lang.Object
java.lang.Enum<SparseBitSet.Statistics>
com.zaxxer.sparsebits.SparseBitSet.Statistics
All Implemented Interfaces:
Serializable, Comparable<SparseBitSet.Statistics>, Constable
Enclosing class:
SparseBitSet

public static enum SparseBitSet.Statistics extends Enum<SparseBitSet.Statistics>
These enumeration values are used as labels for the values in the String created by the statistics() method. The values of the corresponding statistics are ints, except for the loadFactor and Average_chain_length values, which are floats.

An array of Strings may be obtained containing a representation of each of these values. An element of such an array, say, values, may be accessed, for example, by:

      values[SparseBitSet.statistics.Buckets_available.ordinal()]
See Also:
  • Enum Constant Details

    • Size

      public static final SparseBitSet.Statistics Size
      The size of the bit set, as give by the size() method.
    • Length

      public static final SparseBitSet.Statistics Length
      The length of the bit set, as give by the length() method.
    • Cardinality

      public static final SparseBitSet.Statistics Cardinality
      The cardinality of the bit set, as give by the cardinality() method.
    • Total_words

      public static final SparseBitSet.Statistics Total_words
      The total number of non-zero 64-bits "words" being used to hold the representation of the bit set.
    • Set_array_length

      public static final SparseBitSet.Statistics Set_array_length
      The length of the bit set array.
    • Set_array_max_length

      public static final SparseBitSet.Statistics Set_array_max_length
      The maximum permitted length of the bit set array.
    • Level2_areas

      public static final SparseBitSet.Statistics Level2_areas
      The number of level2 areas.
    • Level2_area_length

      public static final SparseBitSet.Statistics Level2_area_length
      The length of the level2 areas.
    • Level3_blocks

      public static final SparseBitSet.Statistics Level3_blocks
      The total number of level3 blocks in use.
    • Level3_block_length

      public static final SparseBitSet.Statistics Level3_block_length
      The length of the level3 blocks.
    • Compaction_count_value

      public static final SparseBitSet.Statistics Compaction_count_value
      Is the value that determines how the toString() conversion is performed.
      See Also:
  • Method Details

    • values

      public static SparseBitSet.Statistics[] 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 SparseBitSet.Statistics 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