Class Utils

java.lang.Object
org.metricshub.wbem.client.Utils

public class Utils extends Object
  • Field Details

    • DEFAULT_ARRAY_SEPARATOR

      public static final String DEFAULT_ARRAY_SEPARATOR
      Default separator for array values
      See Also:
    • EMPTY

      public static final String EMPTY
      See Also:
    • WBEM_CIM_DATETIME_FORMATTER

      public static final DateTimeFormatter WBEM_CIM_DATETIME_FORMATTER
      Formatter/Parser of the first part of CIM_DATETIME
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • checkNonNull

      public static <T> void checkNonNull(T argument, String name)
      Check if the required argument is not null.
      Parameters:
      argument -
      name -
      Throws:
      IllegalArgumentException - if the argument is null
    • convertCimDateTime

      public static OffsetDateTime convertCimDateTime(String stringValue)
      Convert a String holding a CIM_DATETIME (i.e. a string in the form of yyyymmddHHMMSS.mmmmmmsUUU) to an OffsetDateTime object
      Parameters:
      stringValue - String value with a CIM_DATETIME
      Returns:
      OffsetDateTime instance