Package com.zaxxer.sparsebits
Enum SparseBitSet.Statistics
- java.lang.Object
-
- java.lang.Enum<SparseBitSet.Statistics>
-
- com.zaxxer.sparsebits.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 areint
s, except for the loadFactor and Average_chain_length values, which arefloat
s.An array of
String
s 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(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.
-
-
-
Enum Constant Detail
-
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:
SparseBitSet.toStringCompaction(int)
-
-
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 nameNullPointerException
- if the argument is null
-
-