Package oshi.hardware.common
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 Summary
Constructors Constructor Description AbstractGlobalMemory()
-
Method Summary
Modifier and Type Method Description PhysicalMemory[]
getPhysicalMemory()
Physical memory, such as banks of memory.java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface oshi.hardware.GlobalMemory
getAvailable, getPageSize, getTotal, getVirtualMemory
-
Constructor Details
-
AbstractGlobalMemory
public AbstractGlobalMemory()
-
-
Method Details
-
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 interfaceGlobalMemory
- Returns:
- A list of PhysicalMemory objects.
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-