- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
937 B
Java
32 lines
937 B
Java
package androidx.core.util;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.util.Half;
|
|
import androidx.annotation.RequiresApi;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
|
|
@SuppressLint({"ClassVerificationFailure"})
|
|
@SourceDebugExtension({"SMAP\nHalf.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Half.kt\nandroidx/core/util/HalfKt\n*L\n1#1,57:1\n42#1:58\n*S KotlinDebug\n*F\n+ 1 Half.kt\nandroidx/core/util/HalfKt\n*L\n49#1:58\n*E\n"})
|
|
/* loaded from: classes.dex */
|
|
public final class HalfKt {
|
|
@RequiresApi(26)
|
|
public static final Half toHalf(short s) {
|
|
return Half.valueOf(s);
|
|
}
|
|
|
|
@RequiresApi(26)
|
|
public static final Half toHalf(double d) {
|
|
return Half.valueOf((float) d);
|
|
}
|
|
|
|
@RequiresApi(26)
|
|
public static final Half toHalf(float f) {
|
|
return Half.valueOf(f);
|
|
}
|
|
|
|
@RequiresApi(26)
|
|
public static final Half toHalf(String str) {
|
|
return Half.valueOf(str);
|
|
}
|
|
}
|