Enum SparseBitSet.Statistics

  • All Implemented Interfaces:
    Serializable, Comparable<SparseBitSet.Statistics>
    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:
    SparseBitSet.statistics(String[])
    • 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​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null