Class AbstractGlobalMemory

java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
All Implemented Interfaces:
GlobalMemory

@ThreadSafe
public abstract class AbstractGlobalMemory
extends java.lang.Object
implements GlobalMemory
Memory info.
  • Constructor Details

  • Method Details

    • getPhysicalMemory

      public PhysicalMemory[] getPhysicalMemory()
      Description copied from interface: GlobalMemory
      Physical memory, such as banks of memory.

      On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.

      Specified by:
      getPhysicalMemory in interface GlobalMemory
      Returns:
      A list of PhysicalMemory objects.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object