|
8 | 8 | import convex.core.util.Utils;
|
9 | 9 |
|
10 | 10 | /**
|
11 |
| - * Abstract base class for Cells. |
| 11 | + * Abstract base class for Cells in CAD3 data format. |
12 | 12 | *
|
13 |
| - * Cells may contain Refs to other Cells, which can be tested with getRefCount() |
| 13 | + * Cells may contain Refs to 0-63 child Cells, which can be tested with getRefCount() |
14 | 14 | *
|
15 | 15 | * All data objects intended for on-chain usage / serialisation should extend this.
|
16 | 16 | *
|
@@ -348,25 +348,24 @@ public boolean isEmbedded() {
|
348 | 348 | public abstract boolean isCanonical();
|
349 | 349 |
|
350 | 350 | /**
|
351 |
| - * Converts this Cell to a canonical version. Must return this Cell if already canonical, may be O(n) in size of value otherwise. |
| 351 | + * Converts this Cell to a canonical version, if not already canonical. |
352 | 352 | *
|
353 |
| - * Callers should usually use getCanonical(), which caches canonical instances once created |
| 353 | + * Must return this Cell if already canonical, may be O(n) in size of value otherwise. |
| 354 | + * |
| 355 | + * Users should usually use getCanonical(), which caches canonical instances once created |
354 | 356 | *
|
355 | 357 | * @return Canonical version of Cell
|
356 | 358 | */
|
357 | 359 | protected abstract ACell toCanonical();
|
358 | 360 |
|
359 | 361 | /**
|
360 |
| - * Returns true if this cell is a first class CVM Value used in the CVM state |
361 |
| - * |
362 |
| - * Sub-structural cells that are not themselves first class values |
363 |
| - * should return false |
| 362 | + * Returns true if this cell is a first class CVM Value. |
364 | 363 | *
|
365 |
| - * Records and types that are not permissible on the CVM should return false. |
| 364 | + * CAD3 Records and types that are not recognised by the CVM must return false. |
366 | 365 | *
|
367 |
| - * Pretty much everything else should return true. |
| 366 | + * Everything the CVM can recognise must return true. |
368 | 367 | *
|
369 |
| - * Note: CVM values might not be in a canonical format, e.g. temporary data structures |
| 368 | + * Note: CVM values might still not be in a canonical format, e.g. temporary data structures |
370 | 369 | *
|
371 | 370 | * @return true if the object is a CVM Value, false otherwise
|
372 | 371 | */
|
|
0 commit comments