Class TypeCasting

java.lang.Object
com.influxdb.v3.client.internal.TypeCasting

public final class TypeCasting extends Object
Functions for safe type casting.
  • Method Details

    • toLongValue

      public static long toLongValue(@Nonnull Object value)
      Safe casting to long value.
      Parameters:
      value - object to cast
      Returns:
      long value
    • toDoubleValue

      public static double toDoubleValue(@Nonnull Object value)
      Safe casting to double value.
      Parameters:
      value - object to cast
      Returns:
      double value
    • toStringValue

      public static String toStringValue(@Nonnull Object value)
      Safe casting to string value.
      Parameters:
      value - object to cast
      Returns:
      string value