Package io.deephaven.function
Class Cast
java.lang.Object
io.deephaven.function.Cast
Functions for casting between types.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCast can not preserve the value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecastDouble(byte value) Casts a value to adouble.static double[]castDouble(byte... values) Casts an array to adoublearray.static double[]castDouble(byte[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(byte value, boolean checkFidelity) Casts a value to adouble.static doublecastDouble(double value) Casts a value to adouble.static double[]castDouble(double... values) Casts an array to adoublearray.static double[]castDouble(double[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(double value, boolean checkFidelity) Casts a value to adouble.static doublecastDouble(float value) Casts a value to adouble.static double[]castDouble(float... values) Casts an array to adoublearray.static double[]castDouble(float[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(float value, boolean checkFidelity) Casts a value to adouble.static doublecastDouble(int value) Casts a value to adouble.static double[]castDouble(int... values) Casts an array to adoublearray.static double[]castDouble(int[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(int value, boolean checkFidelity) Casts a value to adouble.static doublecastDouble(long value) Casts a value to adouble.static double[]castDouble(long... values) Casts an array to adoublearray.static double[]castDouble(long[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(long value, boolean checkFidelity) Casts a value to adouble.static doublecastDouble(short value) Casts a value to adouble.static double[]castDouble(short... values) Casts an array to adoublearray.static double[]castDouble(short[] values, boolean checkFidelity) Casts an array to adoublearray.static doublecastDouble(short value, boolean checkFidelity) Casts a value to adouble.static double[]castDouble(ByteVector values) Casts an array to adoublearray.static double[]castDouble(ByteVector values, boolean checkFidelity) Casts an array to adoublearray.static double[]castDouble(DoubleVector values) Casts an array to adoublearray.static double[]castDouble(DoubleVector values, boolean checkFidelity) Casts an array to adoublearray.static double[]castDouble(FloatVector values) Casts an array to adoublearray.static double[]castDouble(FloatVector values, boolean checkFidelity) Casts an array to adoublearray.static double[]castDouble(IntVector values) Casts an array to adoublearray.static double[]castDouble(IntVector values, boolean checkFidelity) Casts an array to adoublearray.static double[]castDouble(LongVector values) Casts an array to adoublearray.static double[]castDouble(LongVector values, boolean checkFidelity) Casts an array to adoublearray.static double[]castDouble(ShortVector values) Casts an array to adoublearray.static double[]castDouble(ShortVector values, boolean checkFidelity) Casts an array to adoublearray.static intcastInt(byte value) Casts a value to anint.static int[]castInt(byte... values) Casts an array to anintarray.static int[]castInt(byte[] values, boolean checkFidelity) Casts an array to anintarray.static intcastInt(byte value, boolean checkFidelity) Casts a value to anint.static intcastInt(int value) Casts a value to anint.static int[]castInt(int... values) Casts an array to anintarray.static int[]castInt(int[] values, boolean checkFidelity) Casts an array to anintarray.static intcastInt(int value, boolean checkFidelity) Casts a value to anint.static intcastInt(long value) Casts a value to anint.static int[]castInt(long... values) Casts an array to anintarray.static int[]castInt(long[] values, boolean checkFidelity) Casts an array to anintarray.static intcastInt(long value, boolean checkFidelity) Casts a value to anint.static intcastInt(short value) Casts a value to anint.static int[]castInt(short... values) Casts an array to anintarray.static int[]castInt(short[] values, boolean checkFidelity) Casts an array to anintarray.static intcastInt(short value, boolean checkFidelity) Casts a value to anint.static int[]castInt(ByteVector values) Casts an array to anintarray.static int[]castInt(ByteVector values, boolean checkFidelity) Casts an array to anintarray.static int[]Casts an array to anintarray.static int[]Casts an array to anintarray.static int[]castInt(LongVector values) Casts an array to anintarray.static int[]castInt(LongVector values, boolean checkFidelity) Casts an array to anintarray.static int[]castInt(ShortVector values) Casts an array to anintarray.static int[]castInt(ShortVector values, boolean checkFidelity) Casts an array to anintarray.static longcastLong(byte value) Casts a value to along.static long[]castLong(byte... values) Casts an array to alongarray.static long[]castLong(byte[] values, boolean checkFidelity) Casts an array to alongarray.static longcastLong(byte value, boolean checkFidelity) Casts a value to along.static longcastLong(int value) Casts a value to along.static long[]castLong(int... values) Casts an array to alongarray.static long[]castLong(int[] values, boolean checkFidelity) Casts an array to alongarray.static longcastLong(int value, boolean checkFidelity) Casts a value to along.static longcastLong(long value) Casts a value to along.static long[]castLong(long... values) Casts an array to alongarray.static long[]castLong(long[] values, boolean checkFidelity) Casts an array to alongarray.static longcastLong(long value, boolean checkFidelity) Casts a value to along.static longcastLong(short value) Casts a value to along.static long[]castLong(short... values) Casts an array to alongarray.static long[]castLong(short[] values, boolean checkFidelity) Casts an array to alongarray.static longcastLong(short value, boolean checkFidelity) Casts a value to along.static long[]castLong(ByteVector values) Casts an array to alongarray.static long[]castLong(ByteVector values, boolean checkFidelity) Casts an array to alongarray.static long[]Casts an array to alongarray.static long[]Casts an array to alongarray.static long[]castLong(LongVector values) Casts an array to alongarray.static long[]castLong(LongVector values, boolean checkFidelity) Casts an array to alongarray.static long[]castLong(ShortVector values) Casts an array to alongarray.static long[]castLong(ShortVector values, boolean checkFidelity) Casts an array to alongarray.
-
Constructor Details
-
Cast
public Cast()
-
-
Method Details
-
castInt
public static int castInt(byte value, boolean checkFidelity) Casts a value to anint.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castInt
public static int castInt(short value, boolean checkFidelity) Casts a value to anint.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castInt
public static int castInt(int value, boolean checkFidelity) Casts a value to anint.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castInt
public static int castInt(long value, boolean checkFidelity) Casts a value to anint.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castLong
public static long castLong(byte value, boolean checkFidelity) Casts a value to along.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castLong
public static long castLong(short value, boolean checkFidelity) Casts a value to along.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castLong
public static long castLong(int value, boolean checkFidelity) Casts a value to along.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castLong
public static long castLong(long value, boolean checkFidelity) Casts a value to along.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(byte value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(short value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(int value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(long value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(float value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castDouble
public static double castDouble(double value, boolean checkFidelity) Casts a value to adouble.- Parameters:
value- valuecheckFidelity- check to see if the cast preserves the value.- Returns:
- cast value.
-
castInt
public static int castInt(byte value) Casts a value to anint.- Parameters:
value- value- Returns:
- cast value.
-
castInt
public static int[] castInt(byte... values) Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
public static int[] castInt(byte[] values, boolean checkFidelity) Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
public static long castLong(byte value) Casts a value to along.- Parameters:
value- value- Returns:
- cast value.
-
castLong
public static long[] castLong(byte... values) Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
public static long[] castLong(byte[] values, boolean checkFidelity) Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(byte value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(byte... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(byte[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
public static int castInt(short value) Casts a value to anint.- Parameters:
value- value- Returns:
- cast value.
-
castInt
public static int[] castInt(short... values) Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
public static int[] castInt(short[] values, boolean checkFidelity) Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
public static long castLong(short value) Casts a value to along.- Parameters:
value- value- Returns:
- cast value.
-
castLong
public static long[] castLong(short... values) Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
public static long[] castLong(short[] values, boolean checkFidelity) Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(short value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(short... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(short[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
public static int castInt(int value) Casts a value to anint.- Parameters:
value- value- Returns:
- cast value.
-
castInt
public static int[] castInt(int... values) Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
public static int[] castInt(int[] values, boolean checkFidelity) Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
public static long castLong(int value) Casts a value to along.- Parameters:
value- value- Returns:
- cast value.
-
castLong
public static long[] castLong(int... values) Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
public static long[] castLong(int[] values, boolean checkFidelity) Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(int value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(int... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(int[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
public static int castInt(long value) Casts a value to anint.- Parameters:
value- value- Returns:
- cast value.
-
castInt
public static int[] castInt(long... values) Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
public static int[] castInt(long[] values, boolean checkFidelity) Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- values- Returns:
- cast array.
-
castInt
Casts an array to anintarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
public static long castLong(long value) Casts a value to along.- Parameters:
value- value- Returns:
- cast value.
-
castLong
public static long[] castLong(long... values) Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
public static long[] castLong(long[] values, boolean checkFidelity) Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- values- Returns:
- cast array.
-
castLong
Casts an array to alongarray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(long value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(long... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(long[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(float value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(float... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(float[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
public static double castDouble(double value) Casts a value to adouble.- Parameters:
value- value- Returns:
- cast value.
-
castDouble
public static double[] castDouble(double... values) Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
public static double[] castDouble(double[] values, boolean checkFidelity) Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- values- Returns:
- cast array.
-
castDouble
Casts an array to adoublearray.- Parameters:
values- valuescheckFidelity- check to see if the cast preserves the value.- Returns:
- cast array.
-