Constructs a new immutable instance with the given element. @param value the sole value in the list
(int value)
| 44 | * @param value the sole value in the list |
| 45 | */ |
| 46 | public static IntList makeImmutable(int value) { |
| 47 | IntList result = new IntList(1); |
| 48 | |
| 49 | result.add(value); |
| 50 | result.setImmutable(); |
| 51 | |
| 52 | return result; |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Constructs a new immutable instance with the given elements. |
no test coverage detected