Class Win32ProcessorToCacheMemory

java.lang.Object
io.github.eggy03.ferrumx.windows.entity.compounded.Win32ProcessorToCacheMemory

@ShallowImmutable public class Win32ProcessorToCacheMemory extends Object
Immutable representation of a Win32Processor and its associated 1:N relationship with Win32CacheMemory in a Windows system.

Each instance represents a single processor identified by deviceId, and maintains a one-to-many mapping with its corresponding cache memory objects (such as L1, L2, and L3 caches).

This class is purely a convenience class designed to eliminate the need for using Win32AssociatedProcessorMemory when fetching a relation between Win32Processor and Win32CacheMemory as it stores all instances of cache memories for a particular processor.

Usage example

Win32ProcessorToCacheMemory cpuInfo = Win32ProcessorToCacheMemory.builder()
    .deviceId("CPU0")
    .processor(processor)
    .cacheMemoryList(cacheList)
    .build();
Since:
3.0.0
See Also:
  • Field Details

    • deviceId

      @SerializedName("DeviceID") @Nullable @Nullable String deviceId
      The unique identifier for the Win32Processor instance.

      Corresponds to the processor’s DeviceID, such as "CPU0" or "CPU1".

    • processor

      @SerializedName("Processor") @Nullable @Nullable Win32Processor processor
      The Win32Processor entity associated with the deviceId.

      Represents the physical or logical processor containing one or more cache memory units.

    • cacheMemoryList

      @SerializedName("CacheMemory") @Nullable @Nullable List<Win32CacheMemory> cacheMemoryList
      A list of Win32CacheMemory entities associated with the deviceId.

      Represents the processor’s cache hierarchy (such as L1, L2, and L3 cache levels) linked to the specified processor.

  • Constructor Details

    • Win32ProcessorToCacheMemory

      public Win32ProcessorToCacheMemory()
  • Method Details

    • toString

      @NotNull public @NotNull String toString()
      Retrieves the entity in a JSON pretty-print formatted string
      Overrides:
      toString in class Object
      Returns:
      the String value of the object in JSON pretty-print format