HalfKt

Added in 1.1.0

public final class HalfKt


Summary

Public methods

static final @NonNull Half
@RequiresApi(value = 26)
toHalf(double receiver)

Returns a Half instance representing given Double.

static final @NonNull Half
@RequiresApi(value = 26)
toHalf(float receiver)

Returns a Half instance representing given Float.

static final @NonNull Half
@RequiresApi(value = 26)
toHalf(@HalfFloat short receiver)

Returns a Half instance representing given Short.

static final @NonNull Half
@RequiresApi(value = 26)
toHalf(@NonNull String receiver)

Returns a Half instance representing given String.

Public methods

toHalf

@RequiresApi(value = 26)
public static final @NonNull Half toHalf(double receiver)

Returns a Half instance representing given Double.

See also
valueOf

toHalf

@RequiresApi(value = 26)
public static final @NonNull Half toHalf(float receiver)

Returns a Half instance representing given Float.

See also
valueOf

toHalf

@RequiresApi(value = 26)
public static final @NonNull Half toHalf(@HalfFloat short receiver)

Returns a Half instance representing given Short.

See also
valueOf

toHalf

@RequiresApi(value = 26)
public static final @NonNull Half toHalf(@NonNull String receiver)

Returns a Half instance representing given String.

See also
valueOf