-
public class SystemServiceUtils
-
-
Field Summary
Fields Modifier and Type Field Description public final static SystemServiceUtilsINSTANCE
-
Method Summary
Modifier and Type Method Description final static <T extends Any, S extends Any> SaccessSystemServiceSafely(T systemService, String whileWhat, String whatIsNull, FunctionWithThrowable<T, S> tryBlock)final static <T extends Any, S extends Any> SaccessSystemServiceSafelyOrDefault(T systemService, String whileWhat, String whatIsNull, S defaultValue, FunctionWithThrowable<T, S> tryBlock)final static <T extends Any, S extends Any> SaccessSystemServiceByNameSafely(Context context, String serviceName, String whileWhat, String whatIsNull, FunctionWithThrowable<T, S> tryBlock)final static <T extends Any, S extends Any> SaccessSystemServiceByNameSafelyOrDefault(Context context, String serviceName, String whileWhat, String whatIsNull, S defaultValue, FunctionWithThrowable<T, S> tryBlock)-
-
Method Detail
-
accessSystemServiceSafely
final static <T extends Any, S extends Any> S accessSystemServiceSafely(T systemService, String whileWhat, String whatIsNull, FunctionWithThrowable<T, S> tryBlock)
-
accessSystemServiceSafelyOrDefault
final static <T extends Any, S extends Any> S accessSystemServiceSafelyOrDefault(T systemService, String whileWhat, String whatIsNull, S defaultValue, FunctionWithThrowable<T, S> tryBlock)
-
accessSystemServiceByNameSafely
final static <T extends Any, S extends Any> S accessSystemServiceByNameSafely(Context context, String serviceName, String whileWhat, String whatIsNull, FunctionWithThrowable<T, S> tryBlock)
-
-
-
-