Enum SparseBitSet.Statistics

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SparseBitSet.Statistics>
    Enclosing class:
    SparseBitSet

    public static enum SparseBitSet.Statistics
    extends java.lang.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:
    SparseBitSet.statistics(String[])
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Cardinality
      The cardinality of the bit set, as give by the cardinality() method.
      Compaction_count_value
      Is the value that determines how the toString() conversion is performed.
      Length
      The length of the bit set, as give by the length() method.
      Level2_area_length
      The length of the level2 areas.
      Level2_areas
      The number of level2 areas.
      Level3_block_length
      The length of the level3 blocks.
      Level3_blocks
      The total number of level3 blocks in use.
      Set_array_length
      The length of the bit set array.
      Set_array_max_length
      The maximum permitted length of the bit set array.
      Size
      The size of the bit set, as give by the size() method.
      Total_words
      The total number of non-zero 64-bits "words" being used to hold the representation of the bit set.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SparseBitSet.Statistics valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SparseBitSet.Statistics[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static SparseBitSet.Statistics[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SparseBitSet.Statistics c : SparseBitSet.Statistics.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SparseBitSet.Statistics valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null