Class DefaultObjectReferenceManager.ObjectReference

    • Field Detail

      • referent

        private final java.lang.Object referent
    • Constructor Detail

      • ObjectReference

        public ObjectReference​(Runtime runtime,
                               long address,
                               java.lang.Object referent)
    • Method Detail

      • 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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object