|
22 | 22 | * Class that models an array of {@code Booleans} with the {@link java.util.List} interface. |
23 | 23 | * |
24 | 24 | * <p> |
25 | | - * The aim of this class is to enhance the performance of common operations such as {@code add}, {@code remove} and |
26 | | - * {@code set} while also minimizing its memory footprint. This class was made explicitly to replace {@link java.util.ArrayList} |
27 | | - * when working with {@code Boolean} elements. |
| 25 | + * This class was made explicitly to replace {@link java.util.ArrayList} when working with {@code Boolean} elements. |
| 26 | + * It aims to enhance the performance of common operations such as {@code add}, {@code remove} and {@code set} while |
| 27 | + * also minimizing its memory footprint. |
28 | 28 | * </p> |
29 | 29 | * |
30 | 30 | * <p> |
@@ -78,7 +78,7 @@ public final class BitArray extends AbstractList<Boolean> implements RandomAcces |
78 | 78 | private int elements; |
79 | 79 |
|
80 | 80 | /** |
81 | | - * Default constructor. Sets initial capacity to {@link #DEFAULT_CAPACITY}. |
| 81 | + * Default constructor. Sets initial capacity to 64 |
82 | 82 | */ |
83 | 83 | public BitArray() { |
84 | 84 | this(DEFAULT_CAPACITY); |
@@ -515,9 +515,9 @@ public BitArray clone() { |
515 | 515 | * |
516 | 516 | * <p> |
517 | 517 | * The string consists of the number of elements in the array and a list of the elements in a human readable |
518 | | - * format. Exact representation is "Size = SIZE, [((0 | 1) + ' ')*]" where SIZE is a non negative integer and |
519 | | - * the list of elements consists of opening square brackets ([), zero or more bits (single digit ones or zeros) |
520 | | - * separated by spaces and closing square brackets. |
| 518 | + * format. Exact representation is "Size = SIZE, [(((0 | 1) + ' ')* (0 | 1))?]" where SIZE is a non negative integer |
| 519 | + * and '+' is the concatenation operator. The list of elements consists of opening square brackets ([), zero or more |
| 520 | + * bits (single digit ones or zeros) separated by spaces and closing square brackets. |
521 | 521 | * </p> |
522 | 522 | * <p> |
523 | 523 | * Examples:<br> |
|
0 commit comments