Package moa

Class AbstractMOAObject

    • Constructor Detail

      • AbstractMOAObject

        public AbstractMOAObject()
    • Method Detail

      • copy

        public MOAObject copy()
        Description copied from interface: MOAObject
        This method produces a copy of this object.
        Specified by:
        copy in interface MOAObject
        Returns:
        a copy of this object
      • measureByteSize

        public int measureByteSize()
        Description copied from interface: MOAObject
        Gets the memory size of this object.
        Specified by:
        measureByteSize in interface MOAObject
        Returns:
        the memory size of this object
      • toString

        public String toString()
        Returns a description of the object.
        Overrides:
        toString in class Object
        Returns:
        a description of the object
      • copy

        public static MOAObject copy​(MOAObject obj)
        This method produces a copy of an object.
        Parameters:
        obj - object to copy
        Returns:
        a copy of the object
      • measureByteSize

        public static int measureByteSize​(MOAObject obj)
        Gets the memory size of an object.
        Parameters:
        obj - object to measure the memory size
        Returns:
        the memory size of this object