Class WbemcliUtilFFM.WmiResult<T extends Enum<T>>

java.lang.Object
oshi.util.platform.windows.WbemcliUtilFFM.WmiResult<T>
Type Parameters:
T - An enum whose constants define the WMI properties
Enclosing class:
WbemcliUtilFFM

public static class WbemcliUtilFFM.WmiResult<T extends Enum<T>> extends Object
Helper class wrapping the results of a WMI query, indexed by enum property and row.
  • Constructor Details

    • WmiResult

      public WmiResult(Class<T> propertyEnum)
  • Method Details

    • getValue

      public Object getValue(T property, int index)
    • getVtType

      public int getVtType(T property)
    • getCIMType

      public int getCIMType(T property)
    • getResultCount

      public int getResultCount()
    • add

      public void add(int vtType, int cimType, T property, Object value)
      Adds a value for the given property.
      Parameters:
      vtType - the VT type
      cimType - the CIM type
      property - the property enum constant
      value - the value (may be null)
    • incrementResultCount

      public void incrementResultCount()
      Increments the result count.