Package oshi.hardware.common
Class AbstractGlobalMemory
java.lang.Object
oshi.hardware.common.AbstractGlobalMemory
- All Implemented Interfaces:
GlobalMemory
- Direct Known Subclasses:
LinuxGlobalMemory
@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 java.util.List<PhysicalMemory>getPhysicalMemory()Physical memory, such as banks of memory.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.hardware.GlobalMemory
getAvailable, getPageSize, getTotal, getVirtualMemory
-
Constructor Details
-
AbstractGlobalMemory
public AbstractGlobalMemory()
-
-
Method Details
-
getPhysicalMemory
Description copied from interface:GlobalMemoryPhysical memory, such as banks of memory.On Linux, requires elevated permissions. On FreeBSD and Solaris, requires installation of dmidecode.
- Specified by:
getPhysicalMemoryin interfaceGlobalMemory- Returns:
- An
UnmodifiableListof PhysicalMemory objects.
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-