Class MacPowerSource.PowerSourceData

java.lang.Object
oshi.hardware.common.platform.mac.MacPowerSource.PowerSourceData
Enclosing class:
MacPowerSource

public static final class MacPowerSource.PowerSourceData extends Object
Raw values read from a single IOKit Power Source (IOPS) dictionary by the JNA/FFM subclasses.
  • Constructor Details

    • PowerSourceData

      public PowerSourceData(String name, double currentCapacity, double maxCapacity)
      Creates a single power-source reading.
      Parameters:
      name - the power source name
      currentCapacity - the current capacity
      maxCapacity - the maximum capacity