void (int count) { if (count < 0) count = 0; if (myArray == null) { myArray = new Value[count]; } else if (myArray.length < count) { myArray = ArrayUtil.realloc(myArray, count, Value[]::new); } if (myArraySize != count) { myArraySize = count; invalidate(); } }