Class RefDirect<T extends ACell>

java.lang.Object
convex.core.data.AObject
convex.core.data.Ref<T>
convex.core.data.RefDirect<T>
Type Parameters:
T - Type of Value referenced
All Implemented Interfaces:
IValidated, IWriteable, Comparable<Ref<T>>

public class RefDirect<T extends ACell> extends Ref<T>
Ref subclass for direct in-memory references. Direct Refs store the underlying value directly with a regular Java strong reference.

Care must be taken to ensure recursive structures do not exceed reasonable memory bounds. In smart contract execution, juice limits serve this purpose.