Class DefaultObjectReferenceManager.ObjectReference

Enclosing class:
DefaultObjectReferenceManager

private static final class DefaultObjectReferenceManager.ObjectReference extends InAccessibleMemoryIO
  • Field Details

    • referent

      private final Object referent
  • Constructor Details

    • ObjectReference

      public ObjectReference(Runtime runtime, long address, Object referent)
  • Method Details

    • size

      public long size()
      Description copied from class: Pointer
      Gets the size of this memory object in bytes (optional operation).
      Specified by:
      size in class Pointer
      Returns:
      the size of the memory area this Pointer points to. If the size is unknown, Long.MAX_VALUE is returned}.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object