Package io.deephaven.function
Class UnboxTransform
java.lang.Object
io.deephaven.function.UnboxTransform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Optional<ToPrimitiveFunction<T>>of(ToObjectFunction<T, ?> f) Returns the Deephaven unboxed equivalent off.static <T> Optional<ToPrimitiveFunction<T>>of(TypedFunction<T> f) Returns the Deephaven unboxed equivalent off.static <T> ToByteFunction<T>unboxByte(ToObjectFunction<T, Byte> f) Equivalent tof.mapByte(TypeUtils::unbox).static <T> ToCharFunction<T>Equivalent tof.mapChar(TypeUtils::unbox).static <T> ToDoubleFunction<T>Equivalent tof.mapDouble(TypeUtils::unbox).static <T> ToFloatFunction<T>unboxFloat(ToObjectFunction<T, Float> f) Equivalent tof.mapFloat(TypeUtils::unbox).static <T> ToIntFunction<T>unboxInt(ToObjectFunction<T, Integer> f) Equivalent tof.mapInt(TypeUtils::unbox).static <T> ToLongFunction<T>unboxLong(ToObjectFunction<T, Long> f) Equivalent tof.mapLong(TypeUtils::unbox).static <T> ToShortFunction<T>unboxShort(ToObjectFunction<T, Short> f) Equivalent tof.mapShort(TypeUtils::unbox).
-
Constructor Details
-
UnboxTransform
public UnboxTransform()
-
-
Method Details
-
of
Returns the Deephaven unboxed equivalent off. Relevant for allboxed typesexcept theboxed Boolean type. All other functions will be return unchanged.- Type Parameters:
T- the input type- Parameters:
f- the function- Returns:
- the unboxed equivalent
- See Also:
-
of
Returns the Deephaven unboxed equivalent off. Relevant for allboxed typesexcept theboxed Boolean type. All other functions will be return unchanged.- Type Parameters:
T- the input type- Parameters:
f- the object function- Returns:
- the unboxed equivalent
- See Also:
-
unboxByte
Equivalent tof.mapByte(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Byte function- Returns:
- the byte function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Byte)
-
unboxChar
Equivalent tof.mapChar(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Character function- Returns:
- the char function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Character)
-
unboxShort
Equivalent tof.mapShort(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Short function- Returns:
- the short function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Short)
-
unboxInt
Equivalent tof.mapInt(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Integer function- Returns:
- the int function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Integer)
-
unboxLong
Equivalent tof.mapLong(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Long function- Returns:
- the long function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Long)
-
unboxFloat
Equivalent tof.mapFloat(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Float function- Returns:
- the float function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Float)
-
unboxDouble
Equivalent tof.mapDouble(TypeUtils::unbox).- Type Parameters:
T- the input type- Parameters:
f- the Double function- Returns:
- the double function
- See Also:
-
UnboxTransform.TypeUtils.unbox(Double)
-