Package com.influxdb.v3.client.internal
Class TypeCasting
java.lang.Object
com.influxdb.v3.client.internal.TypeCasting
Functions for safe type casting.
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
toDoubleValue
(Object value) Safe casting to double value.static long
toLongValue
(Object value) Safe casting to long value.static String
toStringValue
(Object value) Safe casting to string value.
-
Method Details
-
toLongValue
Safe casting to long value.- Parameters:
value
- object to cast- Returns:
- long value
-
toDoubleValue
Safe casting to double value.- Parameters:
value
- object to cast- Returns:
- double value
-
toStringValue
Safe casting to string value.- Parameters:
value
- object to cast- Returns:
- string value
-