Interface IRefCountedField

All Known Implementing Classes:
FieldManyToOne, FieldOneToMany, FieldOneToOne

public interface IRefCountedField
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    hasReferences​(Nd nd, long address)
    Returns true if this field knows of any remaining incoming references to this object.
  • Method Details

    • hasReferences

      boolean hasReferences(Nd nd, long address)
      Returns true if this field knows of any remaining incoming references to this object. This is used by the implementation of FieldManyToOne to determine whether or not a refcounted object should be deleted after a reference is removed.

      Implementations should return false if the refcount is 0 or true if the refcount is nonzero.