Package org.metricshub.wbem.client
Class Utils
java.lang.Object
org.metricshub.wbem.client.Utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default separator for array valuesstatic final String
static final DateTimeFormatter
Formatter/Parser of the first part of CIM_DATETIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
checkNonNull
(T argument, String name) Check if the required argument is not null.static OffsetDateTime
convertCimDateTime
(String stringValue) Convert a String holding a CIM_DATETIME (i.e. a string in the form ofyyyymmddHHMMSS.mmmmmmsUUU
) to an OffsetDateTime object
-
Field Details
-
DEFAULT_ARRAY_SEPARATOR
Default separator for array values- See Also:
-
EMPTY
- See Also:
-
WBEM_CIM_DATETIME_FORMATTER
Formatter/Parser of the first part of CIM_DATETIME
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
checkNonNull
Check if the required argument is not null.- Parameters:
argument
-name
-- Throws:
IllegalArgumentException
- if the argument is null
-
convertCimDateTime
Convert a String holding a CIM_DATETIME (i.e. a string in the form ofyyyymmddHHMMSS.mmmmmmsUUU
) to an OffsetDateTime object- Parameters:
stringValue
- String value with a CIM_DATETIME- Returns:
- OffsetDateTime instance
-