Class Win32DiskPartitionToLogicalDisk

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

@ShallowImmutable public class Win32DiskPartitionToLogicalDisk extends Object
Immutable representation of a Win32DiskPartition and its 1:N relationship with Win32LogicalDisk in a Windows system.

Each instance represents a single disk partition identified by partitionId, and maintains a one-to-many mapping with its corresponding logical disks.

This class is purely a convenience class designed to eliminate the need for using Win32LogicalDiskToPartition when fetching a relation between Win32DiskPartition and Win32LogicalDisk

A class for representing1:N mappings of Win32DiskDrive with Win32DiskPartition and Win32LogicalDisk is also available by the name of Win32DiskDriveToPartitionAndLogicalDisk.

Usage example

Win32DiskPartitionToLogicalDisk partitionInfo = Win32DiskPartitionToLogicalDisk.builder()
    .partitionId("Disk #0, Partition #1")
    .diskPartition(partition)
    .logicalDiskList(logicalDisks)
    .build();
Since:
3.0.0
See Also:
  • Field Details

    • partitionId

      @SerializedName("PartitionID") @Nullable @Nullable String partitionId
      The unique identifier for the Win32DiskPartition instance.

      Typically represented as a string such as "Disk #0, Partition #1".

    • diskPartition

      @SerializedName("Partition") @Nullable @Nullable Win32DiskPartition diskPartition
      The Win32DiskPartition entity associated with the partitionId.

      Represents the physical partition on a disk drive that may contain one or more logical disks.

    • logicalDiskList

      @SerializedName("LogicalDisks") @Nullable @Nullable List<Win32LogicalDisk> logicalDiskList
      A list of Win32LogicalDisk entities associated with the partitionId.

      Represents all logical disks or drive letters mapped to the specified diskPartition.

  • Constructor Details

    • Win32DiskPartitionToLogicalDisk

      public Win32DiskPartitionToLogicalDisk()
  • 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