Package com.google.protobuf
Class Android
- java.lang.Object
-
- com.google.protobuf.Android
-
final class Android extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
ASSUME_ANDROID
private static boolean
IS_ROBOLECTRIC
private static java.lang.Class<?>
MEMORY_CLASS
-
Constructor Summary
Constructors Modifier Constructor Description private
Android()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static <T> java.lang.Class<T>
getClassForName(java.lang.String name)
(package private) static java.lang.Class<?>
getMemoryClass()
Returns the memory class ornull
if not on Android device.(package private) static boolean
isOnAndroidDevice()
Returnstrue
if running on an Android device.
-
-
-
Method Detail
-
isOnAndroidDevice
static boolean isOnAndroidDevice()
Returnstrue
if running on an Android device.
-
getMemoryClass
static java.lang.Class<?> getMemoryClass()
Returns the memory class ornull
if not on Android device.
-
getClassForName
private static <T> java.lang.Class<T> getClassForName(java.lang.String name)
-
-