Package moa.core

Class SizeOf

    • Field Detail

      • m_Present

        protected static Boolean m_Present
        whether the agent is present.
    • Constructor Detail

      • SizeOf

        public SizeOf()
    • Method Detail

      • isPresent

        protected static boolean isPresent()
        Checks whteher the agent is present.
        Returns:
        true if the agent is present, false otherwise
      • sizeOf

        public static long sizeOf​(Object o)
        Returns the size of the object.
        Parameters:
        o - the object to get the size for
        Returns:
        the size of the object, or if the agent isn't present -1
      • fullSizeOf

        public static long fullSizeOf​(Object o)
        Returns the full size of the object.
        Parameters:
        o - the object to get the size for
        Returns:
        the size of the object, or if the agent isn't present -1